windowscodecs: Add a NULL check to GetFrameCount of the PNG decoder.
This commit is contained in:
parent
67eafab883
commit
5285756f93
|
@ -640,6 +640,8 @@ static HRESULT WINAPI PngDecoder_GetThumbnail(IWICBitmapDecoder *iface,
|
|||
static HRESULT WINAPI PngDecoder_GetFrameCount(IWICBitmapDecoder *iface,
|
||||
UINT *pCount)
|
||||
{
|
||||
if (!pCount) return E_INVALIDARG;
|
||||
|
||||
*pCount = 1;
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue