Module: wine Branch: master Commit: f3069333a4f41a457362d0303d8eb562972a4b89 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f3069333a4f41a457362d0303d...
Author: Hans Leidekker hans@codeweavers.com Date: Tue Jul 31 12:25:08 2012 +0200
sxs: Use inline wrappers for calling COM methods.
---
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 \