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

This commit is contained in:
Nikolay Sivov 2015-03-20 11:19:22 +03:00 committed by Alexandre Julliard
parent cd4a1ea922
commit d7f0a5ff08
4 changed files with 4 additions and 4 deletions

View File

@ -100,7 +100,7 @@ static HRESULT WINAPI ACLMulti_QueryInterface(IEnumString *iface, REFIID iid, LP
if (IsEqualIID(iid, &IID_IUnknown) || IsEqualIID(iid, &IID_IEnumString))
{
*ppvOut = This;
*ppvOut = &This->IEnumString_iface;
}
else if (IsEqualIID(iid, &IID_IACList))
{

View File

@ -67,7 +67,7 @@ static HRESULT WINAPI ACLShellSource_QueryInterface(IACList2 *iface, REFIID iid,
if (IsEqualIID(iid, &IID_IUnknown) || IsEqualIID(iid, &IID_IACList2) ||
IsEqualIID(iid, &IID_IACList))
{
*ppvOut = This;
*ppvOut = &This->IACList2_iface;
}
if (*ppvOut)

View File

@ -152,7 +152,7 @@ static HRESULT ClassFactory_Constructor(LPFNCONSTRUCTOR ctor, LPVOID *ppvOut)
This->IClassFactory_iface.lpVtbl = &ClassFactoryVtbl;
This->ref = 1;
This->ctor = ctor;
*ppvOut = This;
*ppvOut = &This->IClassFactory_iface;
TRACE("Created class factory %p\n", This);
InterlockedIncrement(&BROWSEUI_refCount);
return S_OK;

View File

@ -70,7 +70,7 @@ static HRESULT WINAPI CompCatCacheDaemon_QueryInterface(IRunnableTask *iface, RE
if (IsEqualIID(iid, &IID_IRunnableTask) || IsEqualIID(iid, &IID_IUnknown))
{
*ppvOut = This;
*ppvOut = &This->IRunnableTask_iface;
}
if (*ppvOut)