From: Nikolay Sivov Subject: [PATCH] oleaut32/tests: Return proper interface pointers Message-Id: <20161210055455.17649-3-nsivov@codeweavers.com> Date: Sat, 10 Dec 2016 08:54:53 +0300 In-Reply-To: <20161210055455.17649-1-nsivov@codeweavers.com> References: <20161210055455.17649-1-nsivov@codeweavers.com> Signed-off-by: Nikolay Sivov --- 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