mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 05:18:08 +00:00
parent
2984901f62
commit
8548ffe6b5
1 changed files with 4 additions and 0 deletions
4
hook.c
4
hook.c
|
@ -144,6 +144,10 @@ uc_err hook_del(struct uc_struct *uc, uc_hook hh)
|
|||
uc->hook_in_idx = 0;
|
||||
}
|
||||
|
||||
if(hh == uc->hook_syscall_idx) {
|
||||
uc->hook_syscall_idx = 0;
|
||||
}
|
||||
|
||||
uc->hook_callbacks[hh].callback = NULL;
|
||||
uc->hook_callbacks[hh].user_data = NULL;
|
||||
uc->hook_callbacks[hh].hook_type = 0;
|
||||
|
|
Loading…
Reference in a new issue