Module: wine Branch: master Commit: c44024f1e0be0065a43e87b81c187e0c43b04ab7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c44024f1e0be0065a43e87b81c...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Fri Nov 23 11:49:09 2012 +0800
windowscodecs: Add a NULL check to GetFrameCount of the JPEG decoder.
---
dlls/windowscodecs/jpegformat.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/windowscodecs/jpegformat.c b/dlls/windowscodecs/jpegformat.c index eab50f0..e9c722e 100644 --- a/dlls/windowscodecs/jpegformat.c +++ b/dlls/windowscodecs/jpegformat.c @@ -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; }