From 4ca5d44ce51cdd667a3c32430a0c84d7715adb08 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 26 Jan 2007 19:53:54 +0000 Subject: [PATCH] credui: Set the focus to the username edit control. --- dlls/credui/credui_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/credui/credui_main.c b/dlls/credui/credui_main.c index 48ba1322fc4..6bd6330d358 100644 --- a/dlls/credui/credui_main.c +++ b/dlls/credui/credui_main.c @@ -73,7 +73,8 @@ static INT_PTR CALLBACK CredDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, SetWindowLongPtrW(hwndDlg, DWLP_USER, (LONG_PTR)params); if (params->pszCaptionText) SetWindowTextW(hwndDlg, params->pszCaptionText); - return TRUE; + SetFocus(GetDlgItem(hwndDlg, IDC_USERNAME)); + return FALSE; } case WM_COMMAND: switch (wParam)