Dmitry Timoshkov : windowscodecs: GetThumbnail of the PNG decoder should return NULL interface.
Module: wine Branch: master Commit: 03c9c3ce44efadcdc641e326fa891cf62568d4c9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=03c9c3ce44efadcdc641e326fa... Author: Dmitry Timoshkov <dmitry(a)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; }
participants (1)
-
Alexandre Julliard