diff --git a/src/plugins/HookSystem.cpp b/src/plugins/HookSystem.cpp index 4cd825500..c5def6a5f 100644 --- a/src/plugins/HookSystem.cpp +++ b/src/plugins/HookSystem.cpp @@ -172,8 +172,8 @@ bool CFunctionHook::hook() { return false; } - if (std::abs(rc(m_source) - rc(m_destination)) > 2000000000 /* 2 GB */) { - Debug::log(ERR, "[functionhook] failed, source and dest are over 2GB apart"); + if (std::abs(rc(m_source) - rc(m_landTrampolineAddr)) > 2000000000 /* 2 GB */) { + Debug::log(ERR, "[functionhook] failed, source and trampo are over 2GB apart"); return false; }