Dmitry Timoshkov : windowscodecs: Implement IWICBitmapDecoder:: GetMetadataQueryReader in the PNG decoder.

Alexandre Julliard julliard at winehq.org
Fri Dec 7 12:13:14 CST 2018


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Fri Dec  7 13:06:14 2018 +0300

windowscodecs: Implement IWICBitmapDecoder::GetMetadataQueryReader in the PNG decoder.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/windowscodecs/pngformat.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index 786d836..7050c95 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -842,10 +842,14 @@ static HRESULT WINAPI PngDecoder_CopyPalette(IWICBitmapDecoder *iface,
 }
 
 static HRESULT WINAPI PngDecoder_GetMetadataQueryReader(IWICBitmapDecoder *iface,
-    IWICMetadataQueryReader **ppIMetadataQueryReader)
+    IWICMetadataQueryReader **reader)
 {
-    FIXME("(%p,%p): stub\n", iface, ppIMetadataQueryReader);
-    return E_NOTIMPL;
+    TRACE("(%p,%p)\n", iface, reader);
+
+    if (!reader) return E_INVALIDARG;
+
+    *reader = NULL;
+    return WINCODEC_ERR_UNSUPPORTEDOPERATION;
 }
 
 static HRESULT WINAPI PngDecoder_GetPreview(IWICBitmapDecoder *iface,




More information about the wine-cvs mailing list