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

This commit is contained in:
Dmitry Timoshkov 2012-11-23 11:47:35 +08:00 committed by Alexandre Julliard
parent 4ad5287496
commit afd1ddbe0d
1 changed files with 2 additions and 0 deletions

View File

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