Vincent Povirk : windowscodecs: Implement GetDecoderInfo for BMP decoder.
Alexandre Julliard
julliard at winehq.org
Wed Aug 5 09:48:16 CDT 2009
Module: wine
Branch: master
Commit: d8c926d79e6a4078fab39abce71ecc1c91bb1cbb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d8c926d79e6a4078fab39abce71ecc1c91bb1cbb
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Tue Jul 28 17:05:26 2009 -0500
windowscodecs: Implement GetDecoderInfo for BMP decoder.
---
dlls/windowscodecs/bmpdecode.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/bmpdecode.c b/dlls/windowscodecs/bmpdecode.c
index 0064e9d..1c63253 100644
--- a/dlls/windowscodecs/bmpdecode.c
+++ b/dlls/windowscodecs/bmpdecode.c
@@ -860,8 +860,20 @@ static HRESULT WINAPI BmpDecoder_GetContainerFormat(IWICBitmapDecoder *iface,
static HRESULT WINAPI BmpDecoder_GetDecoderInfo(IWICBitmapDecoder *iface,
IWICBitmapDecoderInfo **ppIDecoderInfo)
{
- FIXME("(%p,%p): stub\n", iface, ppIDecoderInfo);
- return E_NOTIMPL;
+ HRESULT hr;
+ IWICComponentInfo *compinfo;
+
+ TRACE("(%p,%p)\n", iface, ppIDecoderInfo);
+
+ hr = CreateComponentInfo(&CLSID_WICBmpDecoder, &compinfo);
+ if (FAILED(hr)) return hr;
+
+ hr = IWICComponentInfo_QueryInterface(compinfo, &IID_IWICBitmapDecoderInfo,
+ (void**)ppIDecoderInfo);
+
+ IWICComponentInfo_Release(compinfo);
+
+ return hr;
}
static HRESULT WINAPI BmpDecoder_CopyPalette(IWICBitmapDecoder *iface,
More information about the wine-cvs
mailing list