summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/windows/identity/ui/newcredwnd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/windows/identity/ui/newcredwnd.c b/src/windows/identity/ui/newcredwnd.c
index 7bad1e24c..b876b0297 100644
--- a/src/windows/identity/ui/newcredwnd.c
+++ b/src/windows/identity/ui/newcredwnd.c
@@ -1740,6 +1740,13 @@ static LRESULT nc_handle_wm_nc_notify(HWND hwnd,
y += dy;
}
+ if (d->nc->n_prompts > 0 &&
+ d->nc->prompts[0]->hwnd_edit) {
+
+ SetFocus(d->nc->prompts[0]->hwnd_edit);
+
+ }
+
SelectObject(hdc, hfold);
ReleaseDC(d->dlg_main, hdc);