Commit dc5d07f5 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

fusion: Return interface pointer from QI instead of impl pointer.

parent 20e302e2
...@@ -172,7 +172,7 @@ static HRESULT WINAPI IAssemblyCacheImpl_QueryInterface(IAssemblyCache *iface, ...@@ -172,7 +172,7 @@ static HRESULT WINAPI IAssemblyCacheImpl_QueryInterface(IAssemblyCache *iface,
IsEqualIID(riid, &IID_IAssemblyCache)) IsEqualIID(riid, &IID_IAssemblyCache))
{ {
IAssemblyCache_AddRef(iface); IAssemblyCache_AddRef(iface);
*ppobj = This; *ppobj = &This->IAssemblyCache_iface;
return S_OK; return S_OK;
} }
...@@ -601,7 +601,7 @@ static HRESULT WINAPI IAssemblyCacheItemImpl_QueryInterface(IAssemblyCacheItem * ...@@ -601,7 +601,7 @@ static HRESULT WINAPI IAssemblyCacheItemImpl_QueryInterface(IAssemblyCacheItem *
IsEqualIID(riid, &IID_IAssemblyCacheItem)) IsEqualIID(riid, &IID_IAssemblyCacheItem))
{ {
IAssemblyCacheItem_AddRef(iface); IAssemblyCacheItem_AddRef(iface);
*ppobj = This; *ppobj = &This->IAssemblyCacheItem_iface;
return S_OK; return S_OK;
} }
......
...@@ -72,7 +72,7 @@ static HRESULT WINAPI IAssemblyEnumImpl_QueryInterface(IAssemblyEnum *iface, ...@@ -72,7 +72,7 @@ static HRESULT WINAPI IAssemblyEnumImpl_QueryInterface(IAssemblyEnum *iface,
IsEqualIID(riid, &IID_IAssemblyEnum)) IsEqualIID(riid, &IID_IAssemblyEnum))
{ {
IAssemblyEnum_AddRef(iface); IAssemblyEnum_AddRef(iface);
*ppobj = This; *ppobj = &This->IAssemblyEnum_iface;
return S_OK; return S_OK;
} }
......
...@@ -85,7 +85,7 @@ static HRESULT WINAPI IAssemblyNameImpl_QueryInterface(IAssemblyName *iface, ...@@ -85,7 +85,7 @@ static HRESULT WINAPI IAssemblyNameImpl_QueryInterface(IAssemblyName *iface,
IsEqualIID(riid, &IID_IAssemblyName)) IsEqualIID(riid, &IID_IAssemblyName))
{ {
IAssemblyName_AddRef(iface); IAssemblyName_AddRef(iface);
*ppobj = This; *ppobj = &This->IAssemblyName_iface;
return S_OK; return S_OK;
} }
......
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