browseui: Return interface pointer from QI instead of impl pointer.
This commit is contained in:
parent
cd4a1ea922
commit
d7f0a5ff08
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue