added a check to see if we already found the syscalls physical page

merge-requests/1/head
xerox 4 years ago
parent dcfadd1359
commit 9556415802

@ -4,6 +4,10 @@ namespace vdm
{ {
vdm_ctx::vdm_ctx() vdm_ctx::vdm_ctx()
{ {
// if we already found the syscall's physical page...
if (vdm::syscall_address.load())
return;
vdm::ntoskrnl = reinterpret_cast<std::uint8_t*>( vdm::ntoskrnl = reinterpret_cast<std::uint8_t*>(
LoadLibraryExA("ntoskrnl.exe", NULL, LoadLibraryExA("ntoskrnl.exe", NULL,
DONT_RESOLVE_DLL_REFERENCES)); DONT_RESOLVE_DLL_REFERENCES));

Loading…
Cancel
Save