ole32: Return interface pointers instead of impl pointers from QI.

This commit is contained in:
Nikolay Sivov 2015-03-20 10:15:42 +03:00 committed by Alexandre Julliard
parent 01eed947eb
commit 7d44fa714a
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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