Vincent Povirk : windowscodecs: Implement IWICPixelFormatInfo:: GetFormatGUID.
Alexandre Julliard
julliard at winehq.org
Mon Jun 25 13:24:15 CDT 2012
Module: wine
Branch: master
Commit: c8fea25a33cbf1e29386ca484ad897d247fc32d1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c8fea25a33cbf1e29386ca484ad897d247fc32d1
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Wed Jun 13 10:20:48 2012 -0500
windowscodecs: Implement IWICPixelFormatInfo::GetFormatGUID.
---
dlls/windowscodecs/info.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/info.c b/dlls/windowscodecs/info.c
index f6c7fd0..21c291b 100644
--- a/dlls/windowscodecs/info.c
+++ b/dlls/windowscodecs/info.c
@@ -1241,8 +1241,15 @@ static HRESULT WINAPI PixelFormatInfo_GetFriendlyName(IWICPixelFormatInfo2 *ifac
static HRESULT WINAPI PixelFormatInfo_GetFormatGUID(IWICPixelFormatInfo2 *iface,
GUID *pFormat)
{
- FIXME("(%p,%p): stub\n", iface, pFormat);
- return E_NOTIMPL;
+ PixelFormatInfo *This = impl_from_IWICPixelFormatInfo2(iface);
+ TRACE("(%p,%p)\n", iface, pFormat);
+
+ if (!pFormat)
+ return E_INVALIDARG;
+
+ *pFormat = This->clsid;
+
+ return S_OK;
}
static HRESULT WINAPI PixelFormatInfo_GetColorContext(IWICPixelFormatInfo2 *iface,
More information about the wine-cvs
mailing list