[4/5] windowscodecs: Add wrapper for IWICColorContext_InitializeFromMemory.

Vincent Povirk madewokherd at gmail.com
Tue May 8 13:43:35 CDT 2012


-------------- next part --------------
From 8bc0bcc0d6adfb8283f04fc4bb9cacd8018ac44e Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 8 May 2012 10:23:45 -0500
Subject: [PATCH 04/23] windowscodecs: Add wrapper for
 IWICColorContext_InitializeFromMemory.

---
 dlls/windowscodecs/proxy.c            |    6 ++++++
 dlls/windowscodecs/windowscodecs.spec |    2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/dlls/windowscodecs/proxy.c b/dlls/windowscodecs/proxy.c
index 02cebc9..9baf932 100644
--- a/dlls/windowscodecs/proxy.c
+++ b/dlls/windowscodecs/proxy.c
@@ -36,6 +36,12 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(wincodecs);
 
+HRESULT WINAPI IWICColorContext_InitializeFromMemory_Proxy_W(IWICColorContext *iface,
+    const BYTE *pbBuffer, UINT cbBufferSize)
+{
+    return IWICColorContext_InitializeFromMemory(iface, pbBuffer, cbBufferSize);
+}
+
 HRESULT WINAPI IWICFastMetadataEncoder_Commit_Proxy_W(IWICFastMetadataEncoder *iface)
 {
     return IWICFastMetadataEncoder_Commit(iface);
diff --git a/dlls/windowscodecs/windowscodecs.spec b/dlls/windowscodecs/windowscodecs.spec
index 31b41d2..269fda5 100644
--- a/dlls/windowscodecs/windowscodecs.spec
+++ b/dlls/windowscodecs/windowscodecs.spec
@@ -52,7 +52,7 @@
 @ stub IWICBitmap_Lock_Proxy
 @ stub IWICBitmap_SetPalette_Proxy
 @ stub IWICBitmap_SetResolution_Proxy
-@ stub IWICColorContext_InitializeFromMemory_Proxy
+@ stdcall IWICColorContext_InitializeFromMemory_Proxy(ptr ptr long) IWICColorContext_InitializeFromMemory_Proxy_W
 @ stub IWICComponentFactory_CreateMetadataWriterFromReader_Proxy
 @ stub IWICComponentFactory_CreateQueryWriterFromBlockWriter_Proxy
 @ stub IWICComponentInfo_GetAuthor_Proxy
-- 
1.7.9.5


More information about the wine-patches mailing list