From f07829da5750949ad9e7a9c5a370c65b0f6076f8 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Mon, 25 Jun 2012 12:26:56 +0900 Subject: [PATCH] windowscodecs: TiffDecoder_GetThumbnail should return NULL interface. --- dlls/windowscodecs/tiffformat.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/windowscodecs/tiffformat.c b/dlls/windowscodecs/tiffformat.c index cd3703f70b4..d12729f55d9 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; } -- 2.11.4.GIT