Do not close the logon dialog if the user failed to log on.
svn path=/trunk/; revision=62478
DoLogon(
IN HWND hwndDlg,
IN OUT PGINA_CONTEXT pgContext)
DoLogon(
IN HWND hwndDlg,
IN OUT PGINA_CONTEXT pgContext)
LPWSTR UserName = NULL;
LPWSTR Password = NULL;
LPWSTR Domain = NULL;
LPWSTR UserName = NULL;
LPWSTR Password = NULL;
LPWSTR Domain = NULL;
- INT result = WLX_SAS_ACTION_NONE;
NTSTATUS Status, SubStatus = STATUS_SUCCESS;
if (GetTextboxText(hwndDlg, IDC_USERNAME, &UserName) && *UserName == '\0')
NTSTATUS Status, SubStatus = STATUS_SUCCESS;
if (GetTextboxText(hwndDlg, IDC_USERNAME, &UserName) && *UserName == '\0')
ZeroMemory(pgContext->Password, 256 * sizeof(WCHAR));
wcscpy(pgContext->Password, Password);
ZeroMemory(pgContext->Password, 256 * sizeof(WCHAR));
wcscpy(pgContext->Password, Password);
- result = WLX_SAS_ACTION_LOGON;
done:
if (UserName != NULL)
done:
if (UserName != NULL)
switch (LOWORD(wParam))
{
case IDOK:
switch (LOWORD(wParam))
{
case IDOK:
- EndDialog(hwndDlg, DoLogon(hwndDlg, pgContext));
+ if (DoLogon(hwndDlg, pgContext))
+ EndDialog(hwndDlg, WLX_SAS_ACTION_LOGON);
return TRUE;
case IDCANCEL:
return TRUE;
case IDCANCEL: