diff options
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; } |
