diff --git a/VDM/vdm_ctx/vdm_ctx.cpp b/VDM/vdm_ctx/vdm_ctx.cpp index 7499fb4..59e3be7 100644 --- a/VDM/vdm_ctx/vdm_ctx.cpp +++ b/VDM/vdm_ctx/vdm_ctx.cpp @@ -4,6 +4,10 @@ namespace vdm { vdm_ctx::vdm_ctx() { + // if we already found the syscall's physical page... + if (vdm::syscall_address.load()) + return; + vdm::ntoskrnl = reinterpret_cast( LoadLibraryExA("ntoskrnl.exe", NULL, DONT_RESOLVE_DLL_REFERENCES));