Commit 33af21fd authored by Jeff Latimer's avatar Jeff Latimer Committed by Alexandre Julliard

cabinet: Fix a potential NULL reference.

parent fb1082ae
......@@ -173,7 +173,11 @@ HFCI __cdecl FCICreate(
int err;
PFCI_Int p_fci_internal;
if ((!perf) || (!pfnalloc) || (!pfnfree) || (!pfnopen) || (!pfnread) ||
if (!perf) {
SetLastError(ERROR_BAD_ARGUMENTS);
return NULL;
}
if ((!pfnalloc) || (!pfnfree) || (!pfnopen) || (!pfnread) ||
(!pfnwrite) || (!pfnclose) || (!pfnseek) || (!pfndelete) ||
(!pfnfcigtf) || (!pccab)) {
perf->erfOper = FCIERR_NONE;
......
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