windowscodecs: Add a NULL check to GetFrameCount of the TGA decoder.

oldstable
Dmitry Timoshkov 2012-11-23 11:50:20 +08:00 committed by Alexandre Julliard
parent 92d445bcca
commit 03efd5c0f7
1 changed files with 2 additions and 0 deletions

View File

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