Skip to content

Commit

Permalink
ok ill just use 5
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmeme01 committed Apr 27, 2024
1 parent 6b0f5bb commit dca5cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Result<> Handler::init() {
auto target = m_modifiedBytes.size();

auto address = reinterpret_cast<uint8_t*>(Target::get().getRealPtr(m_address));
Target::get().protectMemory(address, target, VM_PROT_READ | VM_PROT_EXECUTE);
Target::get().protectMemory(address, target, 5);
m_originalBytes.insert(m_originalBytes.begin(), address, address + target);

TULIP_HOOK_UNWRAP_INTO(auto trampolineOffset, generator->relocateOriginal(target));
Expand Down

0 comments on commit dca5cfd

Please sign in to comment.