Replace mm.cpp

Voager_EPTHook_Injector
Zero Hu 2 years ago
parent 50f6950ba7
commit e85ee6dbb1

@ -184,7 +184,13 @@ auto mm::init() -> vmxroot_error_t
const auto pt_phys =
translate(reinterpret_cast<u64>(pt));
if (!pdpt_phys || !pd_phys || !pt_phys)
const auto shadHookData_phys =
translate(reinterpret_cast<u64>(&ShadowHookData));
const auto shadow_phys =
translate(reinterpret_cast<u64>(&shadow));
if (!pdpt_phys || !pd_phys || !pt_phys || !shadHookData_phys || !shadow_phys)
return vmxroot_error_t::invalid_host_virtual;
// setup mapping page table entries...

Loading…
Cancel
Save