Nikolay Sivov : explorerframe: 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: 20e302e2032239e0e73089b8d428b8777dbe5fd7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=20e302e2032239e0e73089b8d428b8777dbe5fd7

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Mar 20 11:23:15 2015 +0300

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

---

 dlls/explorerframe/nstc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/explorerframe/nstc.c b/dlls/explorerframe/nstc.c
index 52d74c7..87a7200 100644
--- a/dlls/explorerframe/nstc.c
+++ b/dlls/explorerframe/nstc.c
@@ -818,7 +818,7 @@ static HRESULT WINAPI NSTC2_fnQueryInterface(INameSpaceTreeControl2* iface,
        IsEqualIID(riid, &IID_INameSpaceTreeControl) ||
        IsEqualIID(riid, &IID_IUnknown))
     {
-        *ppvObject = This;
+        *ppvObject = &This->INameSpaceTreeControl2_iface;
     }
     else if(IsEqualIID(riid, &IID_IOleWindow))
     {




More information about the wine-cvs mailing list