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:
parent
1687e1bfb8
commit
086a230629
|
@ -434,7 +434,7 @@ static HRESULT CorDebugProcess_Create(CorDebug *cordebug, IUnknown** ppUnk, LPPR
|
||||||
if(This->cordebug)
|
if(This->cordebug)
|
||||||
ICorDebug_AddRef(&This->cordebug->ICorDebug_iface);
|
ICorDebug_AddRef(&This->cordebug->ICorDebug_iface);
|
||||||
|
|
||||||
*ppUnk = (IUnknown*)This;
|
*ppUnk = (IUnknown*)&This->ICorDebugProcess_iface;
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
@ -780,7 +780,7 @@ HRESULT CorDebug_Create(ICLRRuntimeHost *runtimehost, IUnknown** ppUnk)
|
||||||
if(This->runtimehost)
|
if(This->runtimehost)
|
||||||
ICLRRuntimeHost_AddRef(This->runtimehost);
|
ICLRRuntimeHost_AddRef(This->runtimehost);
|
||||||
|
|
||||||
*ppUnk = (IUnknown*)This;
|
*ppUnk = (IUnknown*)&This->ICorDebug_iface;
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -199,7 +199,7 @@ HRESULT MetaDataDispenser_CreateInstance(IUnknown **ppUnk)
|
||||||
This->IMetaDataDispenserEx_iface.lpVtbl = &MetaDataDispenserVtbl;
|
This->IMetaDataDispenserEx_iface.lpVtbl = &MetaDataDispenserVtbl;
|
||||||
This->ref = 1;
|
This->ref = 1;
|
||||||
|
|
||||||
*ppUnk = (IUnknown*)This;
|
*ppUnk = (IUnknown*)&This->IMetaDataDispenserEx_iface;
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue