windowscodecs: Account for a NULL pceltFetched in ComponentEnum_Next.
This commit is contained in:
parent
6487f3397a
commit
645f7c6208
|
@ -817,7 +817,8 @@ static HRESULT WINAPI ComponentEnum_Next(IEnumUnknown *iface, ULONG celt,
|
|||
This->cursor = list_next(&This->objects, This->cursor);
|
||||
}
|
||||
LeaveCriticalSection(&This->lock);
|
||||
*pceltFetched = num_fetched;
|
||||
if (pceltFetched)
|
||||
*pceltFetched = num_fetched;
|
||||
return hr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue