From 0bda7899c7c7790b4b258a92b87f55e42aa00e59 Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Sun, 2 Jun 2024 13:50:20 +0300 Subject: [PATCH] more test --- src/generator/X64Generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generator/X64Generator.cpp b/src/generator/X64Generator.cpp index 6d85ad9..c6224a8 100644 --- a/src/generator/X64Generator.cpp +++ b/src/generator/X64Generator.cpp @@ -382,7 +382,7 @@ Result<> X64HandlerGenerator::generateTrampoline(uint64_t target) { auto difference = a.currentAddress() - reinterpret_cast(m_address) + 5 - code.m_originalOffset; - a.int3(); + a.ret(); if (difference <= 0x7fffffffll && difference >= -0x80000000ll) { std::cout << "short jmp offset " << code.m_originalOffset << std::endl; a.jmp(reinterpret_cast(m_address) + code.m_originalOffset);