[PATCH] oleaut32/tests: Return proper interface pointers

Nikolay Sivov nsivov at codeweavers.com
Fri Dec 9 23:54:53 CST 2016


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

diff --git a/dlls/oleaut32/tests/olepicture.c b/dlls/oleaut32/tests/olepicture.c
index b716f25..ddc8958 100644
--- a/dlls/oleaut32/tests/olepicture.c
+++ b/dlls/oleaut32/tests/olepicture.c
@@ -1393,11 +1393,11 @@ static HRESULT WINAPI NoStatStreamImpl_QueryInterface(
   *ppvObject = 0;
   if (IsEqualIID(&IID_IUnknown, riid))
   {
-    *ppvObject = This;
+    *ppvObject = &This->IStream_iface;
   }
   else if (IsEqualIID(&IID_IStream, riid))
   {
-    *ppvObject = This;
+    *ppvObject = &This->IStream_iface;
   }
 
   if ((*ppvObject)==0)
-- 
2.10.2




More information about the wine-patches mailing list