sxs: Use inline wrappers for calling COM methods.
This commit is contained in:
parent
97512d70cf
commit
f3069333a4
|
@ -1,6 +1,7 @@
|
|||
MODULE = sxs.dll
|
||||
IMPORTS = oleaut32 ole32
|
||||
IMPORTLIB = sxs
|
||||
EXTRADEFS = -DWIDL_C_INLINE_WRAPPERS
|
||||
|
||||
C_SRCS = \
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
TESTDLL = sxs.dll
|
||||
IMPORTS = sxs
|
||||
EXTRADEFS = -DWIDL_C_INLINE_WRAPPERS
|
||||
|
||||
C_SRCS = \
|
||||
cache.c \
|
||||
|
|
Loading…
Reference in New Issue