Dmitry Timoshkov : windowscodecs: Implement GetThumbnail in the PNG frame decoder.

Alexandre Julliard julliard at winehq.org
Mon Dec 10 14:00:38 CST 2012


Module: wine
Branch: master
Commit: f52f910f8be9edafd77e3d91764a19cedc771e01
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f52f910f8be9edafd77e3d91764a19cedc771e01

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Mon Dec 10 11:45:04 2012 +0800

windowscodecs: Implement GetThumbnail in the PNG frame decoder.

---

 dlls/windowscodecs/pngformat.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index fb45804..4183d8e 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -903,8 +903,12 @@ static HRESULT WINAPI PngDecoder_Frame_GetColorContexts(IWICBitmapFrameDecode *i
 static HRESULT WINAPI PngDecoder_Frame_GetThumbnail(IWICBitmapFrameDecode *iface,
     IWICBitmapSource **ppIThumbnail)
 {
-    FIXME("(%p,%p): stub\n", iface, ppIThumbnail);
-    return E_NOTIMPL;
+    TRACE("(%p,%p)\n", iface, ppIThumbnail);
+
+    if (!ppIThumbnail) return E_INVALIDARG;
+
+    *ppIThumbnail = NULL;
+    return WINCODEC_ERR_CODECNOTHUMBNAIL;
 }
 
 static const IWICBitmapFrameDecodeVtbl PngDecoder_FrameVtbl = {




More information about the wine-cvs mailing list