windowscodecs: Implement GetDecoderInfo for BMP decoder.

This commit is contained in:
Vincent Povirk 2009-07-28 17:05:26 -05:00 committed by Alexandre Julliard
parent 220edb7900
commit d8c926d79e
1 changed files with 14 additions and 2 deletions

View File

@ -860,8 +860,20 @@ static HRESULT WINAPI BmpDecoder_GetContainerFormat(IWICBitmapDecoder *iface,
static HRESULT WINAPI BmpDecoder_GetDecoderInfo(IWICBitmapDecoder *iface, static HRESULT WINAPI BmpDecoder_GetDecoderInfo(IWICBitmapDecoder *iface,
IWICBitmapDecoderInfo **ppIDecoderInfo) IWICBitmapDecoderInfo **ppIDecoderInfo)
{ {
FIXME("(%p,%p): stub\n", iface, ppIDecoderInfo); HRESULT hr;
return E_NOTIMPL; 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, static HRESULT WINAPI BmpDecoder_CopyPalette(IWICBitmapDecoder *iface,