Commit 199bf795 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

cryptui: Don't crash if pImportSrc is NULL.

parent 07fafa26
...@@ -117,6 +117,12 @@ BOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardT ...@@ -117,6 +117,12 @@ BOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardT
if (!(dwFlags & CRYPTUI_WIZ_NO_UI)) FIXME("UI not implemented\n"); if (!(dwFlags & CRYPTUI_WIZ_NO_UI)) FIXME("UI not implemented\n");
if (!pImportSrc)
{
SetLastError(E_INVALIDARG);
return FALSE;
}
if (pImportSrc->dwSubjectChoice != CRYPTUI_WIZ_IMPORT_SUBJECT_FILE) if (pImportSrc->dwSubjectChoice != CRYPTUI_WIZ_IMPORT_SUBJECT_FILE)
{ {
FIXME("source type not implemented: %u\n", pImportSrc->dwSubjectChoice); FIXME("source type not implemented: %u\n", pImportSrc->dwSubjectChoice);
......
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