Merge pull request #338 from michalmalik/patch-2

fix #337
This commit is contained in:
Nguyen Anh Quynh 2015-12-23 10:27:43 +08:00
commit 8a29acd0de

4
hook.c
View File

@ -143,6 +143,10 @@ uc_err hook_del(struct uc_struct *uc, uc_hook hh)
if (hh == uc->hook_in_idx) {
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;