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

fusion: Use inline wrappers for calling COM methods.

parent f3069333
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, ...@@ -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 * ...@@ -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, ...@@ -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, ...@@ -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;
} }
......
TESTDLL = fusion.dll TESTDLL = fusion.dll
IMPORTS = user32 IMPORTS = user32
EXTRADEFS = -DWIDL_C_INLINE_WRAPPERS
C_SRCS = \ C_SRCS = \
asmcache.c \ asmcache.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