From cd4a1ea922b244626b67d118128345447aad5db7 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 20 Mar 2015 11:15:44 +0300 Subject: [PATCH] avifil32: Return interface pointer from QI instead of impl pointer. --- dlls/avifil32/acmstream.c | 2 +- dlls/avifil32/icmstream.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/avifil32/acmstream.c b/dlls/avifil32/acmstream.c index 845ea164aa..7bf05d23c3 100644 --- a/dlls/avifil32/acmstream.c +++ b/dlls/avifil32/acmstream.c @@ -143,7 +143,7 @@ static HRESULT WINAPI ACMStream_fnQueryInterface(IAVIStream *iface, if (IsEqualGUID(&IID_IUnknown, refiid) || IsEqualGUID(&IID_IAVIStream, refiid)) { - *obj = This; + *obj = &This->IAVIStream_iface; IAVIStream_AddRef(iface); return S_OK; diff --git a/dlls/avifil32/icmstream.c b/dlls/avifil32/icmstream.c index eaca594049..1b86d00dab 100644 --- a/dlls/avifil32/icmstream.c +++ b/dlls/avifil32/icmstream.c @@ -97,7 +97,7 @@ static HRESULT WINAPI ICMStream_fnQueryInterface(IAVIStream *iface, if (IsEqualGUID(&IID_IUnknown, refiid) || IsEqualGUID(&IID_IAVIStream, refiid)) { - *obj = This; + *obj = &This->IAVIStream_iface; IAVIStream_AddRef(iface); return S_OK;