Commit 2e6ff19e authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

quartz: Distinguish interface pointer and implementation pointer in multiple interfaces.

parent cf234d66
......@@ -394,7 +394,7 @@ HRESULT ACMWrapper_create(IUnknown * pUnkOuter, LPVOID * ppv)
if (FAILED(hr))
return hr;
*ppv = This;
*ppv = &This->tf.filter.IBaseFilter_iface;
This->lasttime_real = This->lasttime_sent = -1;
return hr;
......
......@@ -416,7 +416,7 @@ HRESULT AVIDec_create(IUnknown * pUnkOuter, LPVOID * ppv)
This->pBihIn = NULL;
This->pBihOut = NULL;
*ppv = This;
*ppv = &This->tf.filter.IBaseFilter_iface;
return hr;
}
......
......@@ -452,13 +452,13 @@ static HRESULT WINAPI AsyncReader_QueryInterface(IBaseFilter * iface, REFIID rii
*ppv = NULL;
if (IsEqualIID(riid, &IID_IUnknown))
*ppv = This;
*ppv = &This->filter.IBaseFilter_iface;
else if (IsEqualIID(riid, &IID_IPersist))
*ppv = This;
*ppv = &This->filter.IBaseFilter_iface;
else if (IsEqualIID(riid, &IID_IMediaFilter))
*ppv = This;
*ppv = &This->filter.IBaseFilter_iface;
else if (IsEqualIID(riid, &IID_IBaseFilter))
*ppv = This;
*ppv = &This->filter.IBaseFilter_iface;
else if (IsEqualIID(riid, &IID_IFileSourceFilter))
*ppv = &This->IFileSourceFilter_iface;
else if (IsEqualIID(riid, &IID_IAMFilterMiscFlags))
......
......@@ -116,9 +116,9 @@ static HRESULT WINAPI BaseMemAllocator_QueryInterface(IMemAllocator * iface, REF
*ppv = NULL;
if (IsEqualIID(riid, &IID_IUnknown))
*ppv = This;
*ppv = &This->IMemAllocator_iface;
else if (IsEqualIID(riid, &IID_IMemAllocator))
*ppv = This;
*ppv = &This->IMemAllocator_iface;
if (*ppv)
{
......
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