Dmitry Timoshkov : windowscodecs: Add a NULL check to GetFrameCount of the BMP decoder.
Alexandre Julliard
julliard at winehq.org
Tue Nov 27 14:30:49 CST 2012
Module: wine
Branch: master
Commit: afd1ddbe0d34ea2ab2bd9867aedf3e1cf9f41f8f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=afd1ddbe0d34ea2ab2bd9867aedf3e1cf9f41f8f
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Fri Nov 23 11:47:35 2012 +0800
windowscodecs: Add a NULL check to GetFrameCount of the BMP decoder.
---
dlls/windowscodecs/bmpdecode.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/windowscodecs/bmpdecode.c b/dlls/windowscodecs/bmpdecode.c
index 7b3f82d..54de0f1 100644
--- a/dlls/windowscodecs/bmpdecode.c
+++ b/dlls/windowscodecs/bmpdecode.c
@@ -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;
}
More information about the wine-cvs
mailing list