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

This commit is contained in:
Dmitry Timoshkov 2012-11-23 11:49:44 +08:00 committed by Alexandre Julliard
parent 67eafab883
commit 5285756f93
1 changed files with 2 additions and 0 deletions

View File

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