Author: ekohl
Date: Mon Dec 31 22:04:05 2012
New Revision: 58072
URL:
http://svn.reactos.org/svn/reactos?rev=58072&view=rev
Log:
[USRMGR]
- Enable the call to NetUserAdd.
This enables us to create new user accounts. A lot of stuff is still missing, so don't
be surprised if something unexpected happens. It will be fixed soon.
Happy new Year!
Modified:
trunk/reactos/dll/cpl/usrmgr/users.c
Modified: trunk/reactos/dll/cpl/usrmgr/users.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/usrmgr/users.c?rev…
==============================================================================
--- trunk/reactos/dll/cpl/usrmgr/users.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/usrmgr/users.c [iso-8859-1] Mon Dec 31 22:04:05 2012
@@ -261,14 +261,10 @@
NewUserDlgProc,
(LPARAM)&user) == IDOK)
{
-#if 0
status = NetUserAdd(NULL,
3,
(LPBYTE)&user,
NULL);
-#else
- status = NERR_Success;
-#endif
if (status != NERR_Success)
{
TCHAR szText[256];
@@ -434,11 +430,13 @@
lvi.iImage = (pBuffer[i].usri20_flags & UF_ACCOUNTDISABLE) ? 1 : 0;
iItem = ListView_InsertItem(hwndListView, &lvi);
- ListView_SetItemText(hwndListView, iItem, 1,
- pBuffer[i].usri20_full_name);
-
- ListView_SetItemText(hwndListView, iItem, 2,
- pBuffer[i].usri20_comment);
+ if (pBuffer[i].usri20_full_name != NULL)
+ ListView_SetItemText(hwndListView, iItem, 1,
+ pBuffer[i].usri20_full_name);
+
+ if (pBuffer[i].usri20_comment != NULL)
+ ListView_SetItemText(hwndListView, iItem, 2,
+ pBuffer[i].usri20_comment);
}
NetApiBufferFree(pBuffer);