Commit cd4a1ea9 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent bc9b29f6
...@@ -143,7 +143,7 @@ static HRESULT WINAPI ACMStream_fnQueryInterface(IAVIStream *iface, ...@@ -143,7 +143,7 @@ static HRESULT WINAPI ACMStream_fnQueryInterface(IAVIStream *iface,
if (IsEqualGUID(&IID_IUnknown, refiid) || if (IsEqualGUID(&IID_IUnknown, refiid) ||
IsEqualGUID(&IID_IAVIStream, refiid)) { IsEqualGUID(&IID_IAVIStream, refiid)) {
*obj = This; *obj = &This->IAVIStream_iface;
IAVIStream_AddRef(iface); IAVIStream_AddRef(iface);
return S_OK; return S_OK;
......
...@@ -97,7 +97,7 @@ static HRESULT WINAPI ICMStream_fnQueryInterface(IAVIStream *iface, ...@@ -97,7 +97,7 @@ static HRESULT WINAPI ICMStream_fnQueryInterface(IAVIStream *iface,
if (IsEqualGUID(&IID_IUnknown, refiid) || if (IsEqualGUID(&IID_IUnknown, refiid) ||
IsEqualGUID(&IID_IAVIStream, refiid)) { IsEqualGUID(&IID_IAVIStream, refiid)) {
*obj = This; *obj = &This->IAVIStream_iface;
IAVIStream_AddRef(iface); IAVIStream_AddRef(iface);
return S_OK; return S_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment