regress: fix all the calls to uc_hook_add() following recent change on this API

This commit is contained in:
Nguyen Anh Quynh
2016-04-03 23:32:14 +08:00
parent bb1236a850
commit 1486ccce70
3 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ int main(int argc, char **argv, char **envp)
}
// Hook the SYSENTER instructions
if (uc_hook_add (uc, &sysenterHook, UC_HOOK_INSN, sysenter, NULL, UC_X86_INS_SYSENTER) != UC_ERR_OK) {
if (uc_hook_add (uc, &sysenterHook, UC_HOOK_INSN, sysenter, NULL, UC_X86_INS_SYSENTER, 1, 0) != UC_ERR_OK) {
printf ("Cannot hook SYSENTER instruction\n.");
return -1;
}
@@ -57,4 +57,4 @@ int main(int argc, char **argv, char **envp)
}
return 0;
}
}