windowscodecs: Account for a NULL pceltFetched in ComponentEnum_Next.

This commit is contained in:
Vincent Povirk 2010-05-26 15:28:46 -05:00 committed by Alexandre Julliard
parent 6487f3397a
commit 645f7c6208

View File

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