https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b250eb5f3e95375b72094e...
commit b250eb5f3e95375b72094e8a1e9189c818e828f2 Author: Eric Kohl eric.kohl@reactos.org AuthorDate: Sun May 20 11:53:01 2018 +0200 Commit: Eric Kohl eric.kohl@reactos.org CommitDate: Sun May 20 11:53:01 2018 +0200
[SAMSRV] SamrChangePasswordUser: Check StoredLmEmpty and StoredNtEmpty instead of checking StoredNtEmpty twice --- dll/win32/samsrv/samrpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/samsrv/samrpc.c b/dll/win32/samsrv/samrpc.c index 44e401b310..c48f7fa2ba 100644 --- a/dll/win32/samsrv/samrpc.c +++ b/dll/win32/samsrv/samrpc.c @@ -8306,7 +8306,7 @@ SamrChangePasswordUser(IN SAMPR_HANDLE UserHandle, }
/* Check if we can change the password at this time */ - if ((StoredNtEmpty == FALSE) || (StoredNtEmpty == FALSE)) + if ((StoredLmEmpty == FALSE) || (StoredNtEmpty == FALSE)) { /* Get fixed domain data */ Length = sizeof(SAM_DOMAIN_FIXED_DATA);