Commit 53955c57 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

cryptui: Always initialize export wizard's export options.

parent 5775edd8
...@@ -6268,18 +6268,16 @@ static BOOL show_export_ui(DWORD dwFlags, HWND hwndParent, ...@@ -6268,18 +6268,16 @@ static BOOL show_export_ui(DWORD dwFlags, HWND hwndParent,
data.dwFlags = dwFlags; data.dwFlags = dwFlags;
data.pwszWizardTitle = pwszWizardTitle; data.pwszWizardTitle = pwszWizardTitle;
data.pExportInfo = pExportInfo; data.pExportInfo = pExportInfo;
data.contextInfo.dwSize = sizeof(data.contextInfo);
data.contextInfo.dwExportFormat = 0;
data.contextInfo.fExportChain = FALSE;
data.contextInfo.fStrongEncryption = FALSE;
data.contextInfo.fExportPrivateKeys = FALSE;
if (pExportInfo->dwSubjectChoice == CRYPTUI_WIZ_EXPORT_CERT_CONTEXT && if (pExportInfo->dwSubjectChoice == CRYPTUI_WIZ_EXPORT_CERT_CONTEXT &&
pvoid) pvoid)
memcpy(&data.contextInfo, pvoid, memcpy(&data.contextInfo, pvoid,
min(((PCCRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO)pvoid)->dwSize, min(((PCCRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO)pvoid)->dwSize,
sizeof(data.contextInfo))); sizeof(data.contextInfo)));
else
{
data.contextInfo.dwExportFormat = 0;
data.contextInfo.fExportChain = FALSE;
data.contextInfo.fStrongEncryption = FALSE;
data.contextInfo.fExportPrivateKeys = FALSE;
}
data.fileName = NULL; data.fileName = NULL;
data.file = INVALID_HANDLE_VALUE; data.file = INVALID_HANDLE_VALUE;
data.success = FALSE; data.success = FALSE;
......
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