[1/5] windowscodecs: Implement QueryCapability in the PNG decoder.
Dmitry Timoshkov
dmitry at baikal.ru
Mon Nov 19 02:01:20 CST 2012
---
dlls/windowscodecs/pngformat.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index 89f092e..a49f071 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -351,11 +351,15 @@ static ULONG WINAPI PngDecoder_Release(IWICBitmapDecoder *iface)
return ref;
}
-static HRESULT WINAPI PngDecoder_QueryCapability(IWICBitmapDecoder *iface, IStream *pIStream,
- DWORD *pdwCapability)
+static HRESULT WINAPI PngDecoder_QueryCapability(IWICBitmapDecoder *iface, IStream *stream,
+ DWORD *capability)
{
- FIXME("(%p,%p,%p): stub\n", iface, pIStream, pdwCapability);
- return E_NOTIMPL;
+ TRACE("(%p,%p,%p)\n", iface, stream, capability);
+
+ if (!stream || !capability) return E_INVALIDARG;
+
+ *capability = WICBitmapDecoderCapabilityCanDecodeAllImages;
+ return S_OK;
}
static void user_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
--
1.7.12.4
More information about the wine-patches
mailing list