Skip to content

Commit

Permalink
create contest test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kin4stat committed Sep 18, 2022
1 parent e2f4bfa commit bdba30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/create_context_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ auto generate_code() {
gen.mov(ptr[IMM(&ctx.edx)], edx);
gen.mov(ptr[IMM(&ctx.ecx)], ecx);
gen.mov(ptr[IMM(&ctx.eax)], eax);
gen.jmp(&A::test_func);
gen.jmp(reinterpret_cast<void*>(&A::test_func));
return gen.getCode<decltype(&A::test_func)>();
}
testing::AssertionResult operator==(const kthook::cpu_ctx& lhs, const kthook::cpu_ctx& rhs) {
Expand Down

0 comments on commit bdba30e

Please sign in to comment.