browseui: Return interface pointer instead of impl pointer.

This commit is contained in:
Nikolay Sivov 2015-04-04 14:39:26 +03:00 committed by Alexandre Julliard
parent 961b1a270f
commit 77a63b7245
4 changed files with 4 additions and 4 deletions

View File

@ -325,7 +325,7 @@ HRESULT ACLMulti_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
This->refCount = 1;
TRACE("returning %p\n", This);
*ppOut = (IUnknown *)This;
*ppOut = (IUnknown *)&This->IEnumString_iface;
BROWSEUI_refCount++;
return S_OK;
}

View File

@ -147,6 +147,6 @@ HRESULT ACLShellSource_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
This->refCount = 1;
TRACE("returning %p\n", This);
*ppOut = (IUnknown *)This;
*ppOut = (IUnknown *)&This->IACList2_iface;
return S_OK;
}

View File

@ -158,7 +158,7 @@ HRESULT CompCatCacheDaemon_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
This->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": CompCatCacheDaemon.cs");
TRACE("returning %p\n", This);
*ppOut = (IUnknown *)This;
*ppOut = (IUnknown *)&This->IRunnableTask_iface;
InterlockedIncrement(&BROWSEUI_refCount);
return S_OK;
}

View File

@ -579,7 +579,7 @@ HRESULT ProgressDialog_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
This->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": ProgressDialog.cs");
TRACE("returning %p\n", This);
*ppOut = (IUnknown *)This;
*ppOut = (IUnknown *)&This->IProgressDialog_iface;
InterlockedIncrement(&BROWSEUI_refCount);
return S_OK;
}