Commit f3069333 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

sxs: Use inline wrappers for calling COM methods.

parent 97512d70
MODULE = sxs.dll MODULE = sxs.dll
IMPORTS = oleaut32 ole32 IMPORTS = oleaut32 ole32
IMPORTLIB = sxs IMPORTLIB = sxs
EXTRADEFS = -DWIDL_C_INLINE_WRAPPERS
C_SRCS = \ C_SRCS = \
cache.c \ cache.c \
......
...@@ -69,7 +69,7 @@ static HRESULT WINAPI cache_QueryInterface( ...@@ -69,7 +69,7 @@ static HRESULT WINAPI cache_QueryInterface(
if (IsEqualIID(riid, &IID_IUnknown) || if (IsEqualIID(riid, &IID_IUnknown) ||
IsEqualIID(riid, &IID_IAssemblyCache)) IsEqualIID(riid, &IID_IAssemblyCache))
{ {
IUnknown_AddRef( iface ); IAssemblyCache_AddRef( iface );
*obj = cache; *obj = cache;
return S_OK; return S_OK;
} }
......
...@@ -68,7 +68,7 @@ static HRESULT WINAPI name_QueryInterface( ...@@ -68,7 +68,7 @@ static HRESULT WINAPI name_QueryInterface(
if (IsEqualIID( riid, &IID_IUnknown ) || if (IsEqualIID( riid, &IID_IUnknown ) ||
IsEqualIID( riid, &IID_IAssemblyName )) IsEqualIID( riid, &IID_IAssemblyName ))
{ {
IUnknown_AddRef( iface ); IAssemblyName_AddRef( iface );
*obj = name; *obj = name;
return S_OK; return S_OK;
} }
......
TESTDLL = sxs.dll TESTDLL = sxs.dll
IMPORTS = sxs IMPORTS = sxs
EXTRADEFS = -DWIDL_C_INLINE_WRAPPERS
C_SRCS = \ C_SRCS = \
cache.c \ cache.c \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment