mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:25:11 +00:00
commit
8a29acd0de
4
hook.c
4
hook.c
|
@ -143,6 +143,10 @@ uc_err hook_del(struct uc_struct *uc, uc_hook hh)
|
||||||
if (hh == uc->hook_in_idx) {
|
if (hh == uc->hook_in_idx) {
|
||||||
uc->hook_in_idx = 0;
|
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].callback = NULL;
|
||||||
uc->hook_callbacks[hh].user_data = NULL;
|
uc->hook_callbacks[hh].user_data = NULL;
|
||||||
|
|
Loading…
Reference in a new issue