[04/10] windowscodecs: Implement IWICColorContext::GetType.
Hans Leidekker
hans at codeweavers.com
Thu Nov 15 07:07:23 CST 2012
---
dlls/windowscodecs/colorcontext.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/colorcontext.c b/dlls/windowscodecs/colorcontext.c
index 9517988..1c772c0 100644
--- a/dlls/windowscodecs/colorcontext.c
+++ b/dlls/windowscodecs/colorcontext.c
@@ -36,6 +36,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(wincodecs);
typedef struct ColorContext {
IWICColorContext IWICColorContext_iface;
LONG ref;
+ WICColorContextType type;
} ColorContext;
static inline ColorContext *impl_from_IWICColorContext(IWICColorContext *iface)
@@ -115,8 +116,11 @@ static HRESULT WINAPI ColorContext_InitializeFromExifColorSpace(IWICColorContext
static HRESULT WINAPI ColorContext_GetType(IWICColorContext *iface,
WICColorContextType *pType)
{
- FIXME("(%p,%p)\n", iface, pType);
- return E_NOTIMPL;
+ ColorContext *This = impl_from_IWICColorContext(iface);
+ TRACE("(%p,%p)\n", iface, pType);
+
+ *pType = This->type;
+ return S_OK;
}
static HRESULT WINAPI ColorContext_GetProfileBytes(IWICColorContext *iface,
@@ -154,6 +158,7 @@ HRESULT ColorContext_Create(IWICColorContext **colorcontext)
This->IWICColorContext_iface.lpVtbl = &ColorContext_Vtbl;
This->ref = 1;
+ This->type = 0;
*colorcontext = &This->IWICColorContext_iface;
--
1.7.10.4
More information about the wine-patches
mailing list