Dmitry Timoshkov : windowscodecs: TiffDecoder_GetThumbnail should return NULL interface.
Alexandre Julliard
julliard at winehq.org
Tue Jun 26 13:34:12 CDT 2012
Module: wine
Branch: master
Commit: f07829da5750949ad9e7a9c5a370c65b0f6076f8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f07829da5750949ad9e7a9c5a370c65b0f6076f8
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Mon Jun 25 12:26:56 2012 +0900
windowscodecs: TiffDecoder_GetThumbnail should return NULL interface.
---
dlls/windowscodecs/tiffformat.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/windowscodecs/tiffformat.c b/dlls/windowscodecs/tiffformat.c
index cd3703f..d12729f 100644
--- a/dlls/windowscodecs/tiffformat.c
+++ b/dlls/windowscodecs/tiffformat.c
@@ -643,6 +643,10 @@ static HRESULT WINAPI TiffDecoder_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