[MSGINA] Always stop the automatic login after the first try

Fixes CORE-14643
This commit is contained in:
Eric Kohl 2018-05-22 21:19:58 +02:00
parent 46dcab7ab1
commit 8c5cf73018

View file

@ -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);