X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=dll%2Fwin32%2Fmscoree%2Fcordebug.c;h=0a06a941789aa44ecfc3a1f35f2cf37e7e741b63;hp=d1601fcae771837fb6bbb548006d75e31b0b1736;hb=e38cdd2f62c26bf0610afa6c41a93561cda07bc3;hpb=6cdefd33e1f79327f98070835b132ee581d77122 diff --git a/dll/win32/mscoree/cordebug.c b/dll/win32/mscoree/cordebug.c index d1601fcae77..0a06a941789 100644 --- a/dll/win32/mscoree/cordebug.c +++ b/dll/win32/mscoree/cordebug.c @@ -67,7 +67,7 @@ static HRESULT WINAPI cordebugprocess_QueryInterface(ICorDebugProcess *iface, return E_NOINTERFACE; } - ICorDebug_AddRef(iface); + ICorDebugProcess_AddRef(iface); return S_OK; } @@ -413,7 +413,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; } @@ -437,7 +437,7 @@ static HRESULT WINAPI process_enum_QueryInterface(ICorDebugProcessEnum *iface, R return E_NOINTERFACE; } - ICorDebug_AddRef(iface); + ICorDebugProcessEnum_AddRef(iface); return S_OK; } @@ -759,7 +759,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; }