cryptui: Don't crash if pImportSrc is NULL.

This commit is contained in:
Juan Lang 2008-10-24 13:44:00 -07:00 committed by Alexandre Julliard
parent 07fafa26a3
commit 199bf79507
1 changed files with 6 additions and 0 deletions

View File

@ -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);