mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-03 20:25:35 +00:00
Bugfix: remove hook_add call if no insn type is given
This commit is contained in:
parent
ae9e21f9b8
commit
97c39a3a83
|
@ -367,7 +367,6 @@ VALUE m_uc_hook_add(int argc, VALUE* argv, VALUE self){
|
||||||
err = uc_hook_add(_uc, &trace, htype, cb_hook_insn_syscall,(void *)passthrough, NUM2ULL(begin), NUM2ULL(end), NUM2INT(arg1));
|
err = uc_hook_add(_uc, &trace, htype, cb_hook_insn_syscall,(void *)passthrough, NUM2ULL(begin), NUM2ULL(end), NUM2INT(arg1));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
err = uc_hook_add(_uc, &trace, htype, cb_hook_intr,(void *)passthrough, NUM2ULL(begin), NUM2ULL(end));
|
|
||||||
}
|
}
|
||||||
else if(htype == UC_HOOK_INTR){
|
else if(htype == UC_HOOK_INTR){
|
||||||
err = uc_hook_add(_uc, &trace, htype, cb_hook_intr,(void *)passthrough, NUM2ULL(begin), NUM2ULL(end));
|
err = uc_hook_add(_uc, &trace, htype, cb_hook_intr,(void *)passthrough, NUM2ULL(begin), NUM2ULL(end));
|
||||||
|
|
Loading…
Reference in a new issue