Commit 086a2306 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mscoree: Return pointer to interface, not implementation.

parent 1687e1bf
......@@ -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;
}
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment