static
-INT
+BOOL
DoLogon(
IN HWND hwndDlg,
IN OUT PGINA_CONTEXT pgContext)
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')
ZeroMemory(pgContext->Password, 256 * sizeof(WCHAR));
wcscpy(pgContext->Password, Password);
- result = WLX_SAS_ACTION_LOGON;
+ result = TRUE;
done:
if (UserName != NULL)
switch (LOWORD(wParam))
{
case IDOK:
- EndDialog(hwndDlg, DoLogon(hwndDlg, pgContext));
+ if (DoLogon(hwndDlg, pgContext))
+ EndDialog(hwndDlg, WLX_SAS_ACTION_LOGON);
return TRUE;
case IDCANCEL: