sxs: Use inline wrappers for calling COM methods.

This commit is contained in:
Hans Leidekker 2012-07-31 12:25:08 +02:00 committed by Alexandre Julliard
parent 97512d70cf
commit f3069333a4
4 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
MODULE = sxs.dll
IMPORTS = oleaut32 ole32
IMPORTLIB = sxs
EXTRADEFS = -DWIDL_C_INLINE_WRAPPERS
C_SRCS = \
cache.c \

View File

@ -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;
}

View File

@ -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;
}

View File

@ -1,5 +1,6 @@
TESTDLL = sxs.dll
IMPORTS = sxs
EXTRADEFS = -DWIDL_C_INLINE_WRAPPERS
C_SRCS = \
cache.c \