Real fix for the broken netapi32.dll.
authorEric Kohl <eric.kohl@reactos.org>
Sat, 7 Jun 2008 22:50:55 +0000 (22:50 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 7 Jun 2008 22:50:55 +0000 (22:50 +0000)
svn path=/trunk/; revision=33892

reactos/dll/cpl/usrmgr/userprops.c

index f60fa48..0e2f050 100644 (file)
@@ -260,7 +260,9 @@ SetGeneralUserData(HWND hwndDlg,
     LPTSTR pszFullName = NULL;
     LPTSTR pszComment = NULL;
     NET_API_STATUS status;
     LPTSTR pszFullName = NULL;
     LPTSTR pszComment = NULL;
     NET_API_STATUS status;
+#if 0
     DWORD dwIndex;
     DWORD dwIndex;
+#endif
     INT nLength;
 
     NetUserGetInfo(NULL, pUserData->szUserName, 3, (LPBYTE*)&pUserInfo);
     INT nLength;
 
     NetUserGetInfo(NULL, pUserData->szUserName, 3, (LPBYTE*)&pUserInfo);
@@ -297,13 +299,13 @@ SetGeneralUserData(HWND hwndDlg,
 
 #if 0
     status = NetUserSetInfo(NULL, pUserData->szUserName, 3, (LPBYTE)pUserInfo, &dwIndex);
 
 #if 0
     status = NetUserSetInfo(NULL, pUserData->szUserName, 3, (LPBYTE)pUserInfo, &dwIndex);
-#else
-    status = NERR_Success;
-#endif
     if (status != NERR_Success)
     {
         DebugPrintf(_T("Status: %lu  Index: %lu"), status, dwIndex);
     }
     if (status != NERR_Success)
     {
         DebugPrintf(_T("Status: %lu  Index: %lu"), status, dwIndex);
     }
+#else
+    status = NERR_Success;
+#endif
 
     if (pszFullName)
         HeapFree(GetProcessHeap(), 0, pszFullName);
 
     if (pszFullName)
         HeapFree(GetProcessHeap(), 0, pszFullName);