@@ 43,8 43,8 @@ static std::wstring inject_asm_path(void)
static void load_managed_assembly(void)
{
ICLRMetaHost *rt_meta = nullptr;
- IUnknown *rt_variant = nullptr;
ICLRRuntimeInfo *rt_info = nullptr;
+ ICLRRuntimeHost *rt_host = nullptr;
HRESULT hr;
hr = CLRCreateInstance(CLSID_CLRMetaHost, IID_ICLRMetaHost, (LPVOID *)&rt_meta);
@@ 59,7 59,6 @@ static void load_managed_assembly(void)
return;
}
- ICLRRuntimeHost *rt_host = nullptr;
hr = rt_info->GetInterface(CLSID_CLRRuntimeHost, IID_PPV_ARGS(&rt_host));
if (FAILED(hr)) {
show_err(L"Failed to get runtime host interface.", hr);