[ros-diffs] [ekohl] 33892: Real fix for the broken netapi32.dll.

ekohl at svn.reactos.org ekohl at svn.reactos.org
Sun Jun 8 00:50:55 CEST 2008


Author: ekohl
Date: Sat Jun  7 17:50:55 2008
New Revision: 33892

URL: http://svn.reactos.org/svn/reactos?rev=33892&view=rev
Log:
Real fix for the broken netapi32.dll.

Modified:
    trunk/reactos/dll/cpl/usrmgr/userprops.c

Modified: trunk/reactos/dll/cpl/usrmgr/userprops.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/usrmgr/userprops.c?rev=33892&r1=33891&r2=33892&view=diff
==============================================================================
--- trunk/reactos/dll/cpl/usrmgr/userprops.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/usrmgr/userprops.c [iso-8859-1] Sat Jun  7 17:50:55 2008
@@ -260,7 +260,9 @@
     LPTSTR pszFullName = NULL;
     LPTSTR pszComment = NULL;
     NET_API_STATUS status;
+#if 0
     DWORD dwIndex;
+#endif
     INT nLength;
 
     NetUserGetInfo(NULL, pUserData->szUserName, 3, (LPBYTE*)&pUserInfo);
@@ -297,13 +299,13 @@
 
 #if 0
     status = NetUserSetInfo(NULL, pUserData->szUserName, 3, (LPBYTE)pUserInfo, &dwIndex);
+    if (status != NERR_Success)
+    {
+        DebugPrintf(_T("Status: %lu  Index: %lu"), status, dwIndex);
+    }
 #else
     status = NERR_Success;
 #endif
-    if (status != NERR_Success)
-    {
-        DebugPrintf(_T("Status: %lu  Index: %lu"), status, dwIndex);
-    }
 
     if (pszFullName)
         HeapFree(GetProcessHeap(), 0, pszFullName);



More information about the Ros-diffs mailing list