https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8c5cf73018ca93a256c39…
commit 8c5cf73018ca93a256c391c5e8400cb8dd319ee4
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Tue May 22 21:19:58 2018 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Tue May 22 21:19:58 2018 +0200
[MSGINA] Always stop the automatic login after the first try
Fixes CORE-14643
---
dll/win32/msgina/gui.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dll/win32/msgina/gui.c b/dll/win32/msgina/gui.c
index 1e1069eb27..906998743d 100644
--- a/dll/win32/msgina/gui.c
+++ b/dll/win32/msgina/gui.c
@@ -400,7 +400,7 @@ DoChangePassword(
RequestBuffer->NewPassword.MaximumLength);
/* Connect to the LSA server */
- if (!ConnectToLsa(pgContext))
+ if (ConnectToLsa(pgContext) != ERROR_SUCCESS)
{
ERR("ConnectToLsa() failed\n");
goto done;
@@ -882,11 +882,11 @@ DoLogon(
ZeroMemory(pgContext->Password, sizeof(pgContext->Password));
wcscpy(pgContext->Password, Password);
- pgContext->bAutoAdminLogon = FALSE;
-
result = TRUE;
done:
+ pgContext->bAutoAdminLogon = FALSE;
+
if (UserName != NULL)
HeapFree(GetProcessHeap(), 0, UserName);