credui: Return the state of the dialog's save checkbox to CredUIPromptForCredentials.

This commit is contained in:
Rob Shearman 2008-01-23 16:33:13 +00:00 committed by Alexandre Julliard
parent 9a032584f7
commit 8bee6946cc
1 changed files with 2 additions and 0 deletions

View File

@ -462,6 +462,8 @@ static void CredDialogCommandOk(HWND hwndDlg, struct cred_dialog_params *params)
GetDlgItemTextW(hwndDlg, IDC_PASSWORD, params->pszPassword,
params->ulPasswordMaxChars);
params->fSave = IsDlgButtonChecked(hwndDlg, IDC_SAVE) == BST_CHECKED;
EndDialog(hwndDlg, IDOK);
}