add detour_free_unused_regions
This commit is contained in:
parent
7c25e72f15
commit
67a74ef7e1
2 changed files with 20 additions and 1 deletions
|
|
@ -1001,6 +1001,16 @@ bool detour_set_retain_regions(const bool value)
|
|||
return previous;
|
||||
}
|
||||
|
||||
mach_error_t detour_free_unused_regions()
|
||||
{
|
||||
if (s_transaction_thread != mach_thread_self()) {
|
||||
return detour_err_wrong_thread;
|
||||
}
|
||||
|
||||
internal_detour_free_unused_trampoline_regions();
|
||||
return err_none;
|
||||
}
|
||||
|
||||
void* detour_set_system_region_lower_bound(void* value)
|
||||
{
|
||||
void* previous = s_system_region_lower_bound;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue