mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 08:04:47 +00:00
windowscodecs: Add a NULL check to GetFrameCount of the BMP decoder.
This commit is contained in:
parent
4ad5287496
commit
afd1ddbe0d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue