Dmitry Timoshkov : windowscodecs: Implement GetPreview in the PNG decoder.
Alexandre Julliard
julliard at winehq.org
Mon Dec 10 14:00:38 CST 2012
Module: wine
Branch: master
Commit: 560cfedcba6cce24691eb55438ccc4e47a6916db
URL: http://source.winehq.org/git/wine.git/?a=commit;h=560cfedcba6cce24691eb55438ccc4e47a6916db
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Mon Dec 10 11:44:37 2012 +0800
windowscodecs: Implement GetPreview in the PNG 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 051c60c..fb45804 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -630,8 +630,12 @@ static HRESULT WINAPI PngDecoder_GetMetadataQueryReader(IWICBitmapDecoder *iface
static HRESULT WINAPI PngDecoder_GetPreview(IWICBitmapDecoder *iface,
IWICBitmapSource **ppIBitmapSource)
{
- FIXME("(%p,%p): stub\n", iface, ppIBitmapSource);
- return E_NOTIMPL;
+ TRACE("(%p,%p)\n", iface, ppIBitmapSource);
+
+ if (!ppIBitmapSource) return E_INVALIDARG;
+
+ *ppIBitmapSource = NULL;
+ return WINCODEC_ERR_UNSUPPORTEDOPERATION;
}
static HRESULT WINAPI PngDecoder_GetColorContexts(IWICBitmapDecoder *iface,
More information about the wine-cvs
mailing list