Commit d72f741a authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

credui: The pfSave parameter of CredUIPromptForCredentials is optional.

parent 77f6bc4f
......@@ -167,7 +167,7 @@ DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW pUIInfo,
params.ulUsernameMaxChars = ulUsernameMaxChars;
params.pszPassword = pszPassword;
params.ulPasswordMaxChars = ulPasswordMaxChars;
params.fSave = *pfSave;
params.fSave = pfSave ? *pfSave : FALSE;
ret = DialogBoxParamW(hinstCredUI, MAKEINTRESOURCEW(IDD_CREDDIALOG),
pUIInfo->hwndParent, CredDialogProc, (LPARAM)&params);
......@@ -180,7 +180,8 @@ DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW pUIInfo,
return ERROR_CANCELLED;
}
*pfSave = params.fSave;
if (pfSave)
*pfSave = params.fSave;
return ERROR_SUCCESS;
}
......
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