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

This commit is contained in:
Dmitry Timoshkov 2012-11-23 11:49:09 +08:00 committed by Alexandre Julliard
parent 5e10f2e0ec
commit c44024f1e0
1 changed files with 2 additions and 0 deletions

View File

@ -430,6 +430,8 @@ static HRESULT WINAPI JpegDecoder_GetThumbnail(IWICBitmapDecoder *iface,
static HRESULT WINAPI JpegDecoder_GetFrameCount(IWICBitmapDecoder *iface,
UINT *pCount)
{
if (!pCount) return E_INVALIDARG;
*pCount = 1;
return S_OK;
}