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

This commit is contained in:
Nikolay Sivov 2015-03-20 11:15:44 +03:00 committed by Alexandre Julliard
parent bc9b29f65d
commit cd4a1ea922
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;