[4/5] windowscodecs: Implement IWICPixelFormatInfo::GetFormatGUID.
Vincent Povirk
madewokherd at gmail.com
Thu Jun 21 10:09:04 CDT 2012
-------------- next part --------------
From e22c7348e94f542c388bd7290f8114c12c29748c Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Wed, 13 Jun 2012 10:20:48 -0500
Subject: [PATCH 04/17] windowscodecs: Implement
IWICPixelFormatInfo::GetFormatGUID.
---
dlls/windowscodecs/info.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/info.c b/dlls/windowscodecs/info.c
index bc3d6bd..ff56355 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;
+
+ memcpy(pFormat, &This->clsid, sizeof(CLSID));
+
+ return S_OK;
}
static HRESULT WINAPI PixelFormatInfo_GetColorContext(IWICPixelFormatInfo2 *iface,
--
1.7.9.5
More information about the wine-patches
mailing list