[01/10] windowscodecs: Add a NULL check to GetFrameCount of the BMP decoder.
Dmitry Timoshkov
dmitry at baikal.ru
Thu Nov 22 21:47:35 CST 2012
---
dlls/windowscodecs/bmpdecode.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/windowscodecs/bmpdecode.c b/dlls/windowscodecs/bmpdecode.c
index 1a1ee0a..43c745b 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;
}
--
1.7.12.4
More information about the wine-patches
mailing list