From fcd18a527fe378437d50fc4e631315b3be2721a6 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Tue, 18 Aug 2009 17:54:15 -0500 Subject: [PATCH] windowscodecs: implement GetPixelFormat for the PNG decoder --- dlls/windowscodecs/pngformat.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c index 4c6c50c..5ab9c9f 100644 --- a/dlls/windowscodecs/pngformat.c +++ b/dlls/windowscodecs/pngformat.c @@ -463,8 +463,12 @@ static HRESULT WINAPI PngDecoder_Frame_GetSize(IWICBitmapFrameDecode *iface, static HRESULT WINAPI PngDecoder_Frame_GetPixelFormat(IWICBitmapFrameDecode *iface, WICPixelFormatGUID *pPixelFormat) { - FIXME("(%p,%p): stub\n", iface, pPixelFormat); - return E_NOTIMPL; + PngDecoder *This = impl_from_frame(iface); + TRACE("(%p,%p)\n", iface, pPixelFormat); + + memcpy(pPixelFormat, This->format, sizeof(GUID)); + + return S_OK; } static HRESULT WINAPI PngDecoder_Frame_GetResolution(IWICBitmapFrameDecode *iface, -- 1.5.4.3