mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 13:26:58 +00:00
patch hook bounds to be inclusive
This commit is contained in:
parent
2ac1281f82
commit
9f9bd7098b
|
@ -101,7 +101,7 @@ enum uc_hook_idx {
|
||||||
|
|
||||||
// if statement to check hook bounds
|
// if statement to check hook bounds
|
||||||
#define HOOK_BOUND_CHECK(hh, addr) \
|
#define HOOK_BOUND_CHECK(hh, addr) \
|
||||||
((((addr) >= (hh)->begin && (addr) < (hh)->end) \
|
((((addr) >= (hh)->begin && (addr) <= (hh)->end) \
|
||||||
|| (hh)->begin > (hh)->end))
|
|| (hh)->begin > (hh)->end))
|
||||||
|
|
||||||
#define HOOK_EXISTS(uc, idx) ((uc)->hook[idx##_IDX].head != NULL)
|
#define HOOK_EXISTS(uc, idx) ((uc)->hook[idx##_IDX].head != NULL)
|
||||||
|
|
Loading…
Reference in a new issue