return hr;
}
-COM_METHOD CordbProcess::GetContainerObject(CORDB_ADDRESS interiorPointer, ICorDebugValue** ppContainerObject)
+COM_METHOD CordbProcess::GetContainerObject(CORDB_ADDRESS interiorPointer, ICorDebugObjectValue** ppContainerObject)
{
HRESULT hr = S_OK;
// TODO, databp, I don't know what I am doing, NO_LOCK doesn't sound right
{
_ASSERTE(event.type == DB_IPCE_GET_CONTAINER_RESULT);
CORDB_ADDRESS containerAddress = PTR_TO_CORDB_ADDRESS(event.GetContainerResult.answer);
- ICorDebugObjectValue* pResult;
- hr = this->GetObject(containerAddress, &pResult);
- if (SUCCEEDED(hr))
- {
- hr = pResult->QueryInterface(__uuidof(ICorDebugValue), (void**)ppContainerObject);
- // TODO, databp, smart pointer
- pResult->Release();
- }
+ hr = this->GetObject(containerAddress, ppContainerObject);
}
PUBLIC_API_END(hr);
//-----------------------------------------------------------
// ICorDebugProcess9
//-----------------------------------------------------------
- COM_METHOD GetContainerObject(CORDB_ADDRESS interiorPointer, ICorDebugValue** ppContainerObject);
+ COM_METHOD GetContainerObject(CORDB_ADDRESS interiorPointer, ICorDebugObjectValue** ppContainerObject);
COM_METHOD CreateBreakpoint(CORDB_ADDRESS address, ICorDebugValueBreakpoint **ppBreakpoint);
]
interface ICorDebugProcess9 : IUnknown
{
- HRESULT GetContainerObject([in] CORDB_ADDRESS interiorPointer, [out] ICorDebugValue** ppContainerObject);
+ HRESULT GetContainerObject([in] CORDB_ADDRESS interiorPointer, [out] ICorDebugObjectValue** ppContainerObject);
}
// Event types MODULE_LOADED and MODULE_UNLOADED implement this interface
public:
virtual HRESULT STDMETHODCALLTYPE GetContainerObject(
/* [in] */ CORDB_ADDRESS interiorPointer,
- /* [out] */ ICorDebugValue **ppContainerObject) = 0;
+ /* [out] */ ICorDebugObjectValue **ppContainerObject) = 0;
};
HRESULT ( STDMETHODCALLTYPE *GetContainerObject )(
ICorDebugProcess9 * This,
/* [in] */ CORDB_ADDRESS interiorPointer,
- /* [out] */ ICorDebugValue **ppContainerObject);
+ /* [out] */ ICorDebugObjectValue **ppContainerObject);
END_INTERFACE
} ICorDebugProcess9Vtbl;