Module: wine Branch: master Commit: f343c33083646b67f011151f06123e3e6af19c33 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f343c33083646b67f011151f06...
Author: Vincent Povirk vincent@codeweavers.com Date: Mon Aug 17 13:24:25 2009 -0500
windowscodecs: Implement GetDecoderInfo for the GIF decoder.
---
dlls/windowscodecs/gifformat.c | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/gifformat.c b/dlls/windowscodecs/gifformat.c index a09f2ff..0597b1a 100644 --- a/dlls/windowscodecs/gifformat.c +++ b/dlls/windowscodecs/gifformat.c @@ -376,8 +376,20 @@ static HRESULT WINAPI GifDecoder_GetContainerFormat(IWICBitmapDecoder *iface, static HRESULT WINAPI GifDecoder_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_WICGifDecoder, &compinfo); + if (FAILED(hr)) return hr; + + hr = IWICComponentInfo_QueryInterface(compinfo, &IID_IWICBitmapDecoderInfo, + (void**)ppIDecoderInfo); + + IWICComponentInfo_Release(compinfo); + + return hr; }
static HRESULT WINAPI GifDecoder_CopyPalette(IWICBitmapDecoder *iface,