ole32: Return interface pointers instead of impl pointers from QI.
This commit is contained in:
parent
01eed947eb
commit
7d44fa714a
|
@ -92,7 +92,7 @@ BindCtxImpl_QueryInterface(IBindCtx* iface,REFIID riid,void** ppvObject)
|
|||
if (IsEqualIID(&IID_IUnknown, riid) ||
|
||||
IsEqualIID(&IID_IBindCtx, riid))
|
||||
{
|
||||
*ppvObject = This;
|
||||
*ppvObject = &This->IBindCtx_iface;
|
||||
IBindCtx_AddRef(iface);
|
||||
return S_OK;
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ static HRESULT WINAPI HGLOBALStreamImpl_QueryInterface(
|
|||
IsEqualIID(&IID_ISequentialStream, riid) ||
|
||||
IsEqualIID(&IID_IStream, riid))
|
||||
{
|
||||
*ppvObject = This;
|
||||
*ppvObject = &This->IStream_iface;
|
||||
}
|
||||
|
||||
if ((*ppvObject)==0)
|
||||
|
|
|
@ -316,7 +316,7 @@ RunningObjectTableImpl_QueryInterface(IRunningObjectTable* iface,
|
|||
|
||||
if (IsEqualIID(&IID_IUnknown, riid) ||
|
||||
IsEqualIID(&IID_IRunningObjectTable, riid))
|
||||
*ppvObject = This;
|
||||
*ppvObject = &This->IRunningObjectTable_iface;
|
||||
|
||||
if ((*ppvObject)==0)
|
||||
return E_NOINTERFACE;
|
||||
|
|
|
@ -6300,7 +6300,7 @@ static HRESULT WINAPI IEnumSTATSTGImpl_QueryInterface(
|
|||
if (IsEqualGUID(&IID_IUnknown, riid) ||
|
||||
IsEqualGUID(&IID_IEnumSTATSTG, riid))
|
||||
{
|
||||
*ppvObject = This;
|
||||
*ppvObject = &This->IEnumSTATSTG_iface;
|
||||
IEnumSTATSTG_AddRef(&This->IEnumSTATSTG_iface);
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue