Nikolay Sivov : browseui: Return interface pointer instead of impl pointer.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Apr 6 10:34:18 CDT 2015


Module: wine
Branch: master
Commit: 77a63b724564514f41da29aecc595c7ef323e716
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=77a63b724564514f41da29aecc595c7ef323e716

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Apr  4 14:39:26 2015 +0300

browseui: Return interface pointer instead of impl pointer.

---

 dlls/browseui/aclmulti.c           | 2 +-
 dlls/browseui/aclsource.c          | 2 +-
 dlls/browseui/compcatcachedaemon.c | 2 +-
 dlls/browseui/progressdlg.c        | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/browseui/aclmulti.c b/dlls/browseui/aclmulti.c
index e7edece..6deb30d 100644
--- a/dlls/browseui/aclmulti.c
+++ b/dlls/browseui/aclmulti.c
@@ -325,7 +325,7 @@ HRESULT ACLMulti_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
     This->refCount = 1;
 
     TRACE("returning %p\n", This);
-    *ppOut = (IUnknown *)This;
+    *ppOut = (IUnknown *)&This->IEnumString_iface;
     BROWSEUI_refCount++;
     return S_OK;
 }
diff --git a/dlls/browseui/aclsource.c b/dlls/browseui/aclsource.c
index aa31d08..07033cc 100644
--- a/dlls/browseui/aclsource.c
+++ b/dlls/browseui/aclsource.c
@@ -147,6 +147,6 @@ HRESULT ACLShellSource_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
     This->refCount = 1;
 
     TRACE("returning %p\n", This);
-    *ppOut = (IUnknown *)This;
+    *ppOut = (IUnknown *)&This->IACList2_iface;
     return S_OK;
 }
diff --git a/dlls/browseui/compcatcachedaemon.c b/dlls/browseui/compcatcachedaemon.c
index 5ed9f37..a5c97e9 100644
--- a/dlls/browseui/compcatcachedaemon.c
+++ b/dlls/browseui/compcatcachedaemon.c
@@ -158,7 +158,7 @@ HRESULT CompCatCacheDaemon_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
     This->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": CompCatCacheDaemon.cs");
 
     TRACE("returning %p\n", This);
-    *ppOut = (IUnknown *)This;
+    *ppOut = (IUnknown *)&This->IRunnableTask_iface;
     InterlockedIncrement(&BROWSEUI_refCount);
     return S_OK;
 }
diff --git a/dlls/browseui/progressdlg.c b/dlls/browseui/progressdlg.c
index 7d07ee9..70c78c9 100644
--- a/dlls/browseui/progressdlg.c
+++ b/dlls/browseui/progressdlg.c
@@ -579,7 +579,7 @@ HRESULT ProgressDialog_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
     This->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": ProgressDialog.cs");
 
     TRACE("returning %p\n", This);
-    *ppOut = (IUnknown *)This;
+    *ppOut = (IUnknown *)&This->IProgressDialog_iface;
     InterlockedIncrement(&BROWSEUI_refCount);
     return S_OK;
 }




More information about the wine-cvs mailing list