Fix compilation

This commit is contained in:
momo5502 2022-04-23 10:26:51 +02:00
parent 5c2886fea0
commit 42ec6413c9

View File

@ -296,7 +296,10 @@ void enter_root_mode_on_cpu(vmx::state& vm_state)
throw std::runtime_error("Failed to execute vmx_on");
}
auto destructor = utils::finally(__vmx_off);
auto destructor = utils::finally([]
{
__vmx_off();
});
if (__vmx_vmclear(&launch_context->vmcs_physical_address))
{