mscoree: Return pointer to interface, not implementation.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-08-25 22:04:26 +03:00 committed by Alexandre Julliard
parent 1687e1bfb8
commit 086a230629
2 changed files with 3 additions and 3 deletions

View File

@ -434,7 +434,7 @@ static HRESULT CorDebugProcess_Create(CorDebug *cordebug, IUnknown** ppUnk, LPPR
if(This->cordebug)
ICorDebug_AddRef(&This->cordebug->ICorDebug_iface);
*ppUnk = (IUnknown*)This;
*ppUnk = (IUnknown*)&This->ICorDebugProcess_iface;
return S_OK;
}
@ -780,7 +780,7 @@ HRESULT CorDebug_Create(ICLRRuntimeHost *runtimehost, IUnknown** ppUnk)
if(This->runtimehost)
ICLRRuntimeHost_AddRef(This->runtimehost);
*ppUnk = (IUnknown*)This;
*ppUnk = (IUnknown*)&This->ICorDebug_iface;
return S_OK;
}

View File

@ -199,7 +199,7 @@ HRESULT MetaDataDispenser_CreateInstance(IUnknown **ppUnk)
This->IMetaDataDispenserEx_iface.lpVtbl = &MetaDataDispenserVtbl;
This->ref = 1;
*ppUnk = (IUnknown*)This;
*ppUnk = (IUnknown*)&This->IMetaDataDispenserEx_iface;
return S_OK;
}