[PATCH] wbemdisp: Return interface pointers from QI, not object pointers

Nikolay Sivov nsivov at codeweavers.com
Tue Nov 29 05:10:51 CST 2016


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/wbemdisp/locator.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/wbemdisp/locator.c b/dlls/wbemdisp/locator.c
index a8b1568..fece94f 100644
--- a/dlls/wbemdisp/locator.c
+++ b/dlls/wbemdisp/locator.c
@@ -155,7 +155,7 @@ static HRESULT WINAPI object_QueryInterface(
         IsEqualGUID( riid, &IID_IDispatch ) ||
         IsEqualGUID( riid, &IID_IUnknown ))
     {
-        *ppvObject = object;
+        *ppvObject = iface;
     }
     else
     {
@@ -399,7 +399,7 @@ static HRESULT WINAPI objectset_QueryInterface(
         IsEqualGUID( riid, &IID_IDispatch ) ||
         IsEqualGUID( riid, &IID_IUnknown ))
     {
-        *ppvObject = objectset;
+        *ppvObject = iface;
     }
     else
     {
@@ -630,7 +630,7 @@ static HRESULT WINAPI enumvar_QueryInterface(
     if (IsEqualGUID( riid, &IID_IEnumVARIANT ) ||
         IsEqualGUID( riid, &IID_IUnknown ))
     {
-        *ppvObject = enumvar;
+        *ppvObject = iface;
     }
     else
     {
@@ -763,7 +763,7 @@ static HRESULT WINAPI services_QueryInterface(
         IsEqualGUID( riid, &IID_IDispatch ) ||
         IsEqualGUID( riid, &IID_IUnknown ))
     {
-        *ppvObject = services;
+        *ppvObject = iface;
     }
     else
     {
-- 
2.10.2




More information about the wine-patches mailing list