Commit 7d44fa71 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 01eed947
...@@ -92,7 +92,7 @@ BindCtxImpl_QueryInterface(IBindCtx* iface,REFIID riid,void** ppvObject) ...@@ -92,7 +92,7 @@ BindCtxImpl_QueryInterface(IBindCtx* iface,REFIID riid,void** ppvObject)
if (IsEqualIID(&IID_IUnknown, riid) || if (IsEqualIID(&IID_IUnknown, riid) ||
IsEqualIID(&IID_IBindCtx, riid)) IsEqualIID(&IID_IBindCtx, riid))
{ {
*ppvObject = This; *ppvObject = &This->IBindCtx_iface;
IBindCtx_AddRef(iface); IBindCtx_AddRef(iface);
return S_OK; return S_OK;
} }
......
...@@ -89,7 +89,7 @@ static HRESULT WINAPI HGLOBALStreamImpl_QueryInterface( ...@@ -89,7 +89,7 @@ static HRESULT WINAPI HGLOBALStreamImpl_QueryInterface(
IsEqualIID(&IID_ISequentialStream, riid) || IsEqualIID(&IID_ISequentialStream, riid) ||
IsEqualIID(&IID_IStream, riid)) IsEqualIID(&IID_IStream, riid))
{ {
*ppvObject = This; *ppvObject = &This->IStream_iface;
} }
if ((*ppvObject)==0) if ((*ppvObject)==0)
......
...@@ -316,7 +316,7 @@ RunningObjectTableImpl_QueryInterface(IRunningObjectTable* iface, ...@@ -316,7 +316,7 @@ RunningObjectTableImpl_QueryInterface(IRunningObjectTable* iface,
if (IsEqualIID(&IID_IUnknown, riid) || if (IsEqualIID(&IID_IUnknown, riid) ||
IsEqualIID(&IID_IRunningObjectTable, riid)) IsEqualIID(&IID_IRunningObjectTable, riid))
*ppvObject = This; *ppvObject = &This->IRunningObjectTable_iface;
if ((*ppvObject)==0) if ((*ppvObject)==0)
return E_NOINTERFACE; return E_NOINTERFACE;
......
...@@ -6300,7 +6300,7 @@ static HRESULT WINAPI IEnumSTATSTGImpl_QueryInterface( ...@@ -6300,7 +6300,7 @@ static HRESULT WINAPI IEnumSTATSTGImpl_QueryInterface(
if (IsEqualGUID(&IID_IUnknown, riid) || if (IsEqualGUID(&IID_IUnknown, riid) ||
IsEqualGUID(&IID_IEnumSTATSTG, riid)) IsEqualGUID(&IID_IEnumSTATSTG, riid))
{ {
*ppvObject = This; *ppvObject = &This->IEnumSTATSTG_iface;
IEnumSTATSTG_AddRef(&This->IEnumSTATSTG_iface); IEnumSTATSTG_AddRef(&This->IEnumSTATSTG_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