[1/3] windowscodecs: TiffDecoder_GetThumbnail should return NULL interface.

Dmitry Timoshkov dmitry at baikal.ru
Sun Jun 24 22:26:56 CDT 2012


---
 dlls/windowscodecs/tiffformat.c | 4 ++++
 1 file changed, 4 insertions(+)

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;
 }
 
-- 
1.7.11




More information about the wine-patches mailing list