regress: fix all the calls to uc_hook_add() following recent change on this API
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user