windowscodecs: Add a NULL check to GetFrameCount of the BMP decoder.
This commit is contained in:
parent
4ad5287496
commit
afd1ddbe0d
|
@ -1113,6 +1113,8 @@ static HRESULT WINAPI BmpDecoder_GetThumbnail(IWICBitmapDecoder *iface,
|
|||
static HRESULT WINAPI BmpDecoder_GetFrameCount(IWICBitmapDecoder *iface,
|
||||
UINT *pCount)
|
||||
{
|
||||
if (!pCount) return E_INVALIDARG;
|
||||
|
||||
*pCount = 1;
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue