sxs: Use inline wrappers for calling COM methods.

Hans Leidekker hans at codeweavers.com
Tue Jul 31 05:25:08 CDT 2012


---
 dlls/sxs/Makefile.in       |    1 +
 dlls/sxs/cache.c           |    2 +-
 dlls/sxs/name.c            |    2 +-
 dlls/sxs/tests/Makefile.in |    1 +
 4 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/sxs/Makefile.in b/dlls/sxs/Makefile.in
index d6d6f2b..a107928 100644
--- a/dlls/sxs/Makefile.in
+++ b/dlls/sxs/Makefile.in
@@ -1,6 +1,7 @@
 MODULE    = sxs.dll
 IMPORTS   = oleaut32 ole32
 IMPORTLIB = sxs
+EXTRADEFS = -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	cache.c \
diff --git a/dlls/sxs/cache.c b/dlls/sxs/cache.c
index 46686e5..791a6ed 100644
--- a/dlls/sxs/cache.c
+++ b/dlls/sxs/cache.c
@@ -69,7 +69,7 @@ static HRESULT WINAPI cache_QueryInterface(
     if (IsEqualIID(riid, &IID_IUnknown) ||
         IsEqualIID(riid, &IID_IAssemblyCache))
     {
-        IUnknown_AddRef( iface );
+        IAssemblyCache_AddRef( iface );
         *obj = cache;
         return S_OK;
     }
diff --git a/dlls/sxs/name.c b/dlls/sxs/name.c
index 9ca911b..bb7f094 100644
--- a/dlls/sxs/name.c
+++ b/dlls/sxs/name.c
@@ -68,7 +68,7 @@ static HRESULT WINAPI name_QueryInterface(
     if (IsEqualIID( riid, &IID_IUnknown ) ||
         IsEqualIID( riid, &IID_IAssemblyName ))
     {
-        IUnknown_AddRef( iface );
+        IAssemblyName_AddRef( iface );
         *obj = name;
         return S_OK;
     }
diff --git a/dlls/sxs/tests/Makefile.in b/dlls/sxs/tests/Makefile.in
index 2f8be9c..69305ae 100644
--- a/dlls/sxs/tests/Makefile.in
+++ b/dlls/sxs/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = sxs.dll
 IMPORTS   = sxs
+EXTRADEFS = -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	cache.c \
-- 
1.7.10.4







More information about the wine-patches mailing list