functionHook: fix distance check
This commit is contained in:
parent
ee5d05f0fc
commit
f324a3a564
1 changed files with 2 additions and 2 deletions
|
|
@ -172,8 +172,8 @@ bool CFunctionHook::hook() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (std::abs(rc<int64_t>(m_source) - rc<int64_t>(m_destination)) > 2000000000 /* 2 GB */) {
|
if (std::abs(rc<int64_t>(m_source) - rc<int64_t>(m_landTrampolineAddr)) > 2000000000 /* 2 GB */) {
|
||||||
Debug::log(ERR, "[functionhook] failed, source and dest are over 2GB apart");
|
Debug::log(ERR, "[functionhook] failed, source and trampo are over 2GB apart");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue