mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-30 03:41:16 +00:00
functionHook: fix distance check
This commit is contained in:
parent
ee5d05f0fc
commit
f324a3a564
@ -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…
x
Reference in New Issue
Block a user