windowscodecs: Add a NULL check to GetFrameCount of the TGA decoder.
This commit is contained in:
parent
92d445bcca
commit
03efd5c0f7
|
@ -405,6 +405,8 @@ static HRESULT WINAPI TgaDecoder_GetThumbnail(IWICBitmapDecoder *iface,
|
|||
static HRESULT WINAPI TgaDecoder_GetFrameCount(IWICBitmapDecoder *iface,
|
||||
UINT *pCount)
|
||||
{
|
||||
if (!pCount) return E_INVALIDARG;
|
||||
|
||||
*pCount = 1;
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue