cryptui: Don't crash if pImportSrc is NULL.
This commit is contained in:
parent
07fafa26a3
commit
199bf79507
|
@ -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 (!pImportSrc)
|
||||
{
|
||||
SetLastError(E_INVALIDARG);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (pImportSrc->dwSubjectChoice != CRYPTUI_WIZ_IMPORT_SUBJECT_FILE)
|
||||
{
|
||||
FIXME("source type not implemented: %u\n", pImportSrc->dwSubjectChoice);
|
||||
|
|
Loading…
Reference in New Issue