Dmitry Timoshkov : windowscodecs: GetThumbnail of the PNG decoder should return NULL interface.
Alexandre Julliard
julliard at winehq.org
Mon Dec 10 14:00:38 CST 2012
Module: wine
Branch: master
Commit: 03c9c3ce44efadcdc641e326fa891cf62568d4c9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=03c9c3ce44efadcdc641e326fa891cf62568d4c9
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Mon Dec 10 11:44:12 2012 +0800
windowscodecs: GetThumbnail of the PNG decoder should return NULL interface.
---
dlls/windowscodecs/pngformat.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index 009532d..051c60c 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -645,6 +645,10 @@ static HRESULT WINAPI PngDecoder_GetThumbnail(IWICBitmapDecoder *iface,
IWICBitmapSource **ppIThumbnail)
{
TRACE("(%p,%p)\n", iface, ppIThumbnail);
+
+ if (!ppIThumbnail) return E_INVALIDARG;
+
+ *ppIThumbnail = NULL;
return WINCODEC_ERR_CODECNOTHUMBNAIL;
}
More information about the wine-cvs
mailing list