Nikolay Sivov : fusion: Return interface pointer from QI instead of impl pointer.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 20 08:43:20 CDT 2015
Module: wine
Branch: master
Commit: dc5d07f51b27424bda93c9abe581b983e3acfd15
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dc5d07f51b27424bda93c9abe581b983e3acfd15
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Mar 20 11:25:29 2015 +0300
fusion: Return interface pointer from QI instead of impl pointer.
---
dlls/fusion/asmcache.c | 4 ++--
dlls/fusion/asmenum.c | 2 +-
dlls/fusion/asmname.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/fusion/asmcache.c b/dlls/fusion/asmcache.c
index dd84d38..6cc6602 100644
--- a/dlls/fusion/asmcache.c
+++ b/dlls/fusion/asmcache.c
@@ -172,7 +172,7 @@ static HRESULT WINAPI IAssemblyCacheImpl_QueryInterface(IAssemblyCache *iface,
IsEqualIID(riid, &IID_IAssemblyCache))
{
IAssemblyCache_AddRef(iface);
- *ppobj = This;
+ *ppobj = &This->IAssemblyCache_iface;
return S_OK;
}
@@ -601,7 +601,7 @@ static HRESULT WINAPI IAssemblyCacheItemImpl_QueryInterface(IAssemblyCacheItem *
IsEqualIID(riid, &IID_IAssemblyCacheItem))
{
IAssemblyCacheItem_AddRef(iface);
- *ppobj = This;
+ *ppobj = &This->IAssemblyCacheItem_iface;
return S_OK;
}
diff --git a/dlls/fusion/asmenum.c b/dlls/fusion/asmenum.c
index 76de1bf..4a5dadd 100644
--- a/dlls/fusion/asmenum.c
+++ b/dlls/fusion/asmenum.c
@@ -72,7 +72,7 @@ static HRESULT WINAPI IAssemblyEnumImpl_QueryInterface(IAssemblyEnum *iface,
IsEqualIID(riid, &IID_IAssemblyEnum))
{
IAssemblyEnum_AddRef(iface);
- *ppobj = This;
+ *ppobj = &This->IAssemblyEnum_iface;
return S_OK;
}
diff --git a/dlls/fusion/asmname.c b/dlls/fusion/asmname.c
index f18e622..f892f2b 100644
--- a/dlls/fusion/asmname.c
+++ b/dlls/fusion/asmname.c
@@ -85,7 +85,7 @@ static HRESULT WINAPI IAssemblyNameImpl_QueryInterface(IAssemblyName *iface,
IsEqualIID(riid, &IID_IAssemblyName))
{
IAssemblyName_AddRef(iface);
- *ppobj = This;
+ *ppobj = &This->IAssemblyName_iface;
return S_OK;
}
More information about the wine-cvs
mailing list