Commit ab179341 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

credui: Show the save password checkbox if both CREDUI_FLAGS_DO_NOT_PERSIST and…

credui: Show the save password checkbox if both CREDUI_FLAGS_DO_NOT_PERSIST and CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX are specified.
parent 64e2ad57
......@@ -410,7 +410,9 @@ static BOOL CredDialogInit(HWND hwndDlg, struct cred_dialog_params *params)
SetWindowTextW(hwndDlg, title);
}
if (params->dwFlags & (CREDUI_FLAGS_DO_NOT_PERSIST|CREDUI_FLAGS_PERSIST))
if (params->dwFlags & CREDUI_FLAGS_PERSIST ||
(params->dwFlags & CREDUI_FLAGS_DO_NOT_PERSIST &&
!(params->dwFlags & CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX)))
ShowWindow(GetDlgItem(hwndDlg, IDC_SAVE), SW_HIDE);
else if (params->fSave)
CheckDlgButton(hwndDlg, IDC_SAVE, BST_CHECKED);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment