fusion: Use inline wrappers for calling COM methods.
This commit is contained in:
parent
f3069333a4
commit
fba3ba9017
|
@ -1,5 +1,6 @@
|
||||||
MODULE = fusion.dll
|
MODULE = fusion.dll
|
||||||
IMPORTS = advapi32 dbghelp shlwapi version user32
|
IMPORTS = advapi32 dbghelp shlwapi version user32
|
||||||
|
EXTRADEFS = -DWIDL_C_INLINE_WRAPPERS
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
asmcache.c \
|
asmcache.c \
|
||||||
|
|
|
@ -165,7 +165,7 @@ static HRESULT WINAPI IAssemblyCacheImpl_QueryInterface(IAssemblyCache *iface,
|
||||||
if (IsEqualIID(riid, &IID_IUnknown) ||
|
if (IsEqualIID(riid, &IID_IUnknown) ||
|
||||||
IsEqualIID(riid, &IID_IAssemblyCache))
|
IsEqualIID(riid, &IID_IAssemblyCache))
|
||||||
{
|
{
|
||||||
IUnknown_AddRef(iface);
|
IAssemblyCache_AddRef(iface);
|
||||||
*ppobj = This;
|
*ppobj = This;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
@ -583,7 +583,7 @@ static HRESULT WINAPI IAssemblyCacheItemImpl_QueryInterface(IAssemblyCacheItem *
|
||||||
if (IsEqualIID(riid, &IID_IUnknown) ||
|
if (IsEqualIID(riid, &IID_IUnknown) ||
|
||||||
IsEqualIID(riid, &IID_IAssemblyCacheItem))
|
IsEqualIID(riid, &IID_IAssemblyCacheItem))
|
||||||
{
|
{
|
||||||
IUnknown_AddRef(iface);
|
IAssemblyCacheItem_AddRef(iface);
|
||||||
*ppobj = This;
|
*ppobj = This;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ static HRESULT WINAPI IAssemblyEnumImpl_QueryInterface(IAssemblyEnum *iface,
|
||||||
if (IsEqualIID(riid, &IID_IUnknown) ||
|
if (IsEqualIID(riid, &IID_IUnknown) ||
|
||||||
IsEqualIID(riid, &IID_IAssemblyEnum))
|
IsEqualIID(riid, &IID_IAssemblyEnum))
|
||||||
{
|
{
|
||||||
IUnknown_AddRef(iface);
|
IAssemblyEnum_AddRef(iface);
|
||||||
*ppobj = This;
|
*ppobj = This;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ static HRESULT WINAPI IAssemblyNameImpl_QueryInterface(IAssemblyName *iface,
|
||||||
if (IsEqualIID(riid, &IID_IUnknown) ||
|
if (IsEqualIID(riid, &IID_IUnknown) ||
|
||||||
IsEqualIID(riid, &IID_IAssemblyName))
|
IsEqualIID(riid, &IID_IAssemblyName))
|
||||||
{
|
{
|
||||||
IUnknown_AddRef(iface);
|
IAssemblyName_AddRef(iface);
|
||||||
*ppobj = This;
|
*ppobj = This;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
TESTDLL = fusion.dll
|
TESTDLL = fusion.dll
|
||||||
IMPORTS = user32
|
IMPORTS = user32
|
||||||
|
EXTRADEFS = -DWIDL_C_INLINE_WRAPPERS
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
asmcache.c \
|
asmcache.c \
|
||||||
|
|
Loading…
Reference in New Issue