[NET] Revert useless changes

This commit is contained in:
Eric Kohl 2018-07-07 22:12:37 +02:00
parent b4969dc0d7
commit 506bd64e44
2 changed files with 4 additions and 4 deletions

View file

@ -164,7 +164,7 @@ cmdAccounts(
}
}
if (Modified != FALSE)
if (Modified == TRUE)
{
Status = NetUserModalsSet(NULL, 0, (LPBYTE)Info0, &ParamErr);
if (Status != NERR_Success)

View file

@ -14,7 +14,7 @@ static WCHAR szPasswordChars[] = L"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHI
static
int
CompareUserInfo(const void *a, const void *b)
CompareInfo(const void *a, const void *b)
{
return _wcsicmp(((PUSER_INFO_0)a)->usri0_name,
((PUSER_INFO_0)b)->usri0_name);
@ -62,7 +62,7 @@ EnumerateUsers(VOID)
qsort(pBuffer,
dwRead,
sizeof(PUSER_INFO_0),
CompareUserInfo);
CompareInfo);
for (i = 0; i < dwRead; i++)
{
@ -662,7 +662,7 @@ cmdUser(
}
done:
if ((bPasswordAllocated != FALSE) && (lpPassword != NULL))
if ((bPasswordAllocated == TRUE) && (lpPassword != NULL))
HeapFree(GetProcessHeap(), 0, lpPassword);
if (!bAdd && !bDelete && pUserInfo != NULL)