Author: ekohl
Date: Tue Mar 11 20:33:25 2014
New Revision: 62478
URL:
http://svn.reactos.org/svn/reactos?rev=62478&view=rev
Log:
[MSGINA]
Do not close the logon dialog if the user failed to log on.
Modified:
trunk/reactos/dll/win32/msgina/gui.c
Modified: trunk/reactos/dll/win32/msgina/gui.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/gui.c?rev…
==============================================================================
--- trunk/reactos/dll/win32/msgina/gui.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/gui.c [iso-8859-1] Tue Mar 11 20:33:25 2014
@@ -922,7 +922,7 @@
static
-INT
+BOOL
DoLogon(
IN HWND hwndDlg,
IN OUT PGINA_CONTEXT pgContext)
@@ -930,7 +930,7 @@
LPWSTR UserName = NULL;
LPWSTR Password = NULL;
LPWSTR Domain = NULL;
- INT result = WLX_SAS_ACTION_NONE;
+ BOOL result = FALSE;
NTSTATUS Status, SubStatus = STATUS_SUCCESS;
if (GetTextboxText(hwndDlg, IDC_USERNAME, &UserName) && *UserName ==
'\0')
@@ -1003,7 +1003,7 @@
ZeroMemory(pgContext->Password, 256 * sizeof(WCHAR));
wcscpy(pgContext->Password, Password);
- result = WLX_SAS_ACTION_LOGON;
+ result = TRUE;
done:
if (UserName != NULL)
@@ -1074,7 +1074,8 @@
switch (LOWORD(wParam))
{
case IDOK:
- EndDialog(hwndDlg, DoLogon(hwndDlg, pgContext));
+ if (DoLogon(hwndDlg, pgContext))
+ EndDialog(hwndDlg, WLX_SAS_ACTION_LOGON);
return TRUE;
case IDCANCEL: