mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-22 20:45:29 +00:00
fix #165
This commit is contained in:
parent
b0fa23ebe1
commit
e6b07f4f65
3
hook.c
3
hook.c
|
@ -27,8 +27,7 @@ size_t hook_find_new(struct uc_struct *uc)
|
|||
return 0;
|
||||
|
||||
// reset the newly added slots
|
||||
memset(new + uc->hook_size * sizeof(uc->hook_callbacks[0]), 0,
|
||||
HOOK_SIZE * sizeof(uc->hook_callbacks[0]));
|
||||
memset(new + uc->hook_size, 0, HOOK_SIZE * sizeof(uc->hook_callbacks[0]));
|
||||
|
||||
uc->hook_callbacks = new;
|
||||
uc->hook_size += HOOK_SIZE;
|
||||
|
|
Loading…
Reference in a new issue