From 854b242d041595b6dd2b5064cba5f7c7a311132b Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Thu, 13 Aug 2009 12:43:05 -0500 Subject: [PATCH] windowscodecs: implement GetPixelFormat for default format converter --- dlls/windowscodecs/converter.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dlls/windowscodecs/converter.c b/dlls/windowscodecs/converter.c index 8e3c0fc..b3fec44 100644 --- a/dlls/windowscodecs/converter.c +++ b/dlls/windowscodecs/converter.c @@ -170,8 +170,16 @@ static HRESULT WINAPI FormatConverter_GetSize(IWICFormatConverter *iface, static HRESULT WINAPI FormatConverter_GetPixelFormat(IWICFormatConverter *iface, WICPixelFormatGUID *pPixelFormat) { - FIXME("(%p,%p): stub\n", iface, pPixelFormat); - return E_NOTIMPL; + FormatConverter *This = (FormatConverter*)iface; + + TRACE("(%p,%p): stub\n", iface, pPixelFormat); + + if (This->source) + memcpy(pPixelFormat, This->dst_format->guid, sizeof(GUID)); + else + return WINCODEC_ERR_NOTINITIALIZED; + + return S_OK; } static HRESULT WINAPI FormatConverter_GetResolution(IWICFormatConverter *iface, -- 1.5.4.3