diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-10-14 19:31:49 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-10-14 19:31:49 +0100 |
| commit | f324a3a564b40f4f62eb137808ca38bf6aee1b27 (patch) | |
| tree | 62c458c5e95eb8e30bac47593211f7b4eb8335e8 /src/plugins/HookSystem.cpp | |
| parent | ee5d05f0fc03e65f50364f5b9f4315065f9f49c2 (diff) | |
functionHook: fix distance check
Diffstat (limited to 'src/plugins/HookSystem.cpp')
| -rw-r--r-- | src/plugins/HookSystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/HookSystem.cpp b/src/plugins/HookSystem.cpp index 4cd82550..c5def6a5 100644 --- a/src/plugins/HookSystem.cpp +++ b/src/plugins/HookSystem.cpp @@ -172,8 +172,8 @@ bool CFunctionHook::hook() { return false; } - if (std::abs(rc<int64_t>(m_source) - rc<int64_t>(m_destination)) > 2000000000 /* 2 GB */) { - Debug::log(ERR, "[functionhook] failed, source and dest are over 2GB apart"); + if (std::abs(rc<int64_t>(m_source) - rc<int64_t>(m_landTrampolineAddr)) > 2000000000 /* 2 GB */) { + Debug::log(ERR, "[functionhook] failed, source and trampo are over 2GB apart"); return false; } |
