windowscodecs: Add a NULL check to GetFrameCount of the JPEG decoder.
This commit is contained in:
parent
5e10f2e0ec
commit
c44024f1e0
|
@ -430,6 +430,8 @@ static HRESULT WINAPI JpegDecoder_GetThumbnail(IWICBitmapDecoder *iface,
|
||||||
static HRESULT WINAPI JpegDecoder_GetFrameCount(IWICBitmapDecoder *iface,
|
static HRESULT WINAPI JpegDecoder_GetFrameCount(IWICBitmapDecoder *iface,
|
||||||
UINT *pCount)
|
UINT *pCount)
|
||||||
{
|
{
|
||||||
|
if (!pCount) return E_INVALIDARG;
|
||||||
|
|
||||||
*pCount = 1;
|
*pCount = 1;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue