From 58c925232a2eb9d8213c2286eea169794f5b7727 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 7 Jun 2008 22:50:55 +0000 Subject: [PATCH] Real fix for the broken netapi32.dll. svn path=/trunk/; revision=33892 --- reactos/dll/cpl/usrmgr/userprops.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reactos/dll/cpl/usrmgr/userprops.c b/reactos/dll/cpl/usrmgr/userprops.c index f60fa483165..0e2f050bc82 100644 --- a/reactos/dll/cpl/usrmgr/userprops.c +++ b/reactos/dll/cpl/usrmgr/userprops.c @@ -260,7 +260,9 @@ SetGeneralUserData(HWND hwndDlg, 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 @@ SetGeneralUserData(HWND hwndDlg, #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); } +#else + status = NERR_Success; +#endif if (pszFullName) HeapFree(GetProcessHeap(), 0, pszFullName);