https://git.reactos.org/?p=reactos.git;a=commitdiff;h=506bd64e4402d64f3b3e3…
commit 506bd64e4402d64f3b3e370726f766bdc4746331
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sat Jul 7 22:12:37 2018 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Mon Jul 9 05:56:41 2018 +0200
[NET] Revert useless changes
---
base/applications/network/net/cmdAccounts.c | 2 +-
base/applications/network/net/cmdUser.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/base/applications/network/net/cmdAccounts.c
b/base/applications/network/net/cmdAccounts.c
index 6bade9b574..454aeeb892 100644
--- a/base/applications/network/net/cmdAccounts.c
+++ b/base/applications/network/net/cmdAccounts.c
@@ -164,7 +164,7 @@ cmdAccounts(
}
}
- if (Modified != FALSE)
+ if (Modified == TRUE)
{
Status = NetUserModalsSet(NULL, 0, (LPBYTE)Info0, &ParamErr);
if (Status != NERR_Success)
diff --git a/base/applications/network/net/cmdUser.c
b/base/applications/network/net/cmdUser.c
index 7750d247da..3e188de932 100644
--- a/base/applications/network/net/cmdUser.c
+++ b/base/applications/network/net/cmdUser.c
@@ -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)