credui: Show the save password checkbox if both CREDUI_FLAGS_DO_NOT_PERSIST and CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX are specified.

oldstable
Hans Leidekker 2012-10-18 14:16:05 +02:00 committed by Alexandre Julliard
parent 64e2ad5709
commit ab179341e2
1 changed files with 3 additions and 1 deletions

View File

@ -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);