mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 18:00:41 +00:00
[MSGINA]
Do not close the logon dialog if the user failed to log on. svn path=/trunk/; revision=62478
This commit is contained in:
parent
e6fb12f8ca
commit
15d43e5a94
1 changed files with 5 additions and 4 deletions
|
@ -922,7 +922,7 @@ GUILoggedOnSAS(
|
||||||
|
|
||||||
|
|
||||||
static
|
static
|
||||||
INT
|
BOOL
|
||||||
DoLogon(
|
DoLogon(
|
||||||
IN HWND hwndDlg,
|
IN HWND hwndDlg,
|
||||||
IN OUT PGINA_CONTEXT pgContext)
|
IN OUT PGINA_CONTEXT pgContext)
|
||||||
|
@ -930,7 +930,7 @@ DoLogon(
|
||||||
LPWSTR UserName = NULL;
|
LPWSTR UserName = NULL;
|
||||||
LPWSTR Password = NULL;
|
LPWSTR Password = NULL;
|
||||||
LPWSTR Domain = NULL;
|
LPWSTR Domain = NULL;
|
||||||
INT result = WLX_SAS_ACTION_NONE;
|
BOOL result = FALSE;
|
||||||
NTSTATUS Status, SubStatus = STATUS_SUCCESS;
|
NTSTATUS Status, SubStatus = STATUS_SUCCESS;
|
||||||
|
|
||||||
if (GetTextboxText(hwndDlg, IDC_USERNAME, &UserName) && *UserName == '\0')
|
if (GetTextboxText(hwndDlg, IDC_USERNAME, &UserName) && *UserName == '\0')
|
||||||
|
@ -1003,7 +1003,7 @@ TRACE("DoLoginTasks failed! Status 0x%08lx\n", Status);
|
||||||
ZeroMemory(pgContext->Password, 256 * sizeof(WCHAR));
|
ZeroMemory(pgContext->Password, 256 * sizeof(WCHAR));
|
||||||
wcscpy(pgContext->Password, Password);
|
wcscpy(pgContext->Password, Password);
|
||||||
|
|
||||||
result = WLX_SAS_ACTION_LOGON;
|
result = TRUE;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
if (UserName != NULL)
|
if (UserName != NULL)
|
||||||
|
@ -1074,7 +1074,8 @@ LoggedOutWindowProc(
|
||||||
switch (LOWORD(wParam))
|
switch (LOWORD(wParam))
|
||||||
{
|
{
|
||||||
case IDOK:
|
case IDOK:
|
||||||
EndDialog(hwndDlg, DoLogon(hwndDlg, pgContext));
|
if (DoLogon(hwndDlg, pgContext))
|
||||||
|
EndDialog(hwndDlg, WLX_SAS_ACTION_LOGON);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
case IDCANCEL:
|
case IDCANCEL:
|
||||||
|
|
Loading…
Reference in a new issue