Commit a62d2036 authored by swift_gan's avatar swift_gan Committed by swift_gan

fix typo

parent 935457ea
......@@ -238,7 +238,7 @@ void InlineHookArm32Android::ExceptionHandler(int num, sigcontext *context) {
} else {
BreakCallback callback = reinterpret_cast<BreakCallback>(hook_info.replace);
if (callback(context, hook_info.user_data)) {
context->arm_pc = reinterpret_cast<U32>(hook_info.replace);
context->arm_pc = reinterpret_cast<U32>(hook_info.backup);
} else {
context->arm_pc += 4;
}
......
......@@ -225,7 +225,7 @@ void InlineHookArm64Android::ExceptionHandler(int num, sigcontext *context) {
} else {
BreakCallback callback = reinterpret_cast<BreakCallback>(hook_info.replace);
if (callback(context, hook_info.user_data)) {
context->pc = reinterpret_cast<U64>(hook_info.replace);
context->pc = reinterpret_cast<U64>(hook_info.backup);
} else {
context->pc += 4;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment