mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:50:37 +00:00
sxs: Don't assign a COM object to the 3rd param of QueryInterface.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2868e9350a
commit
67ea78c881
|
@ -57,19 +57,17 @@ static inline struct cache *impl_from_IAssemblyCache(IAssemblyCache *iface)
|
|||
static HRESULT WINAPI cache_QueryInterface(
|
||||
IAssemblyCache *iface,
|
||||
REFIID riid,
|
||||
void **obj )
|
||||
void **ret_iface )
|
||||
{
|
||||
struct cache *cache = impl_from_IAssemblyCache(iface);
|
||||
TRACE("%p, %s, %p\n", iface, debugstr_guid(riid), ret_iface);
|
||||
|
||||
TRACE("%p, %s, %p\n", cache, debugstr_guid(riid), obj);
|
||||
|
||||
*obj = NULL;
|
||||
*ret_iface = NULL;
|
||||
|
||||
if (IsEqualIID(riid, &IID_IUnknown) ||
|
||||
IsEqualIID(riid, &IID_IAssemblyCache))
|
||||
{
|
||||
IAssemblyCache_AddRef( iface );
|
||||
*obj = cache;
|
||||
*ret_iface = iface;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -56,19 +56,17 @@ static inline struct name *impl_from_IAssemblyName( IAssemblyName *iface )
|
|||
static HRESULT WINAPI name_QueryInterface(
|
||||
IAssemblyName *iface,
|
||||
REFIID riid,
|
||||
void **obj )
|
||||
void **ret_iface )
|
||||
{
|
||||
struct name *name = impl_from_IAssemblyName( iface );
|
||||
TRACE("%p, %s, %p\n", iface, debugstr_guid(riid), ret_iface);
|
||||
|
||||
TRACE("%p, %s, %p\n", name, debugstr_guid(riid), obj);
|
||||
|
||||
*obj = NULL;
|
||||
*ret_iface = NULL;
|
||||
|
||||
if (IsEqualIID( riid, &IID_IUnknown ) ||
|
||||
IsEqualIID( riid, &IID_IAssemblyName ))
|
||||
{
|
||||
IAssemblyName_AddRef( iface );
|
||||
*obj = name;
|
||||
*ret_iface = iface;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue