Skip to content

Commit

Permalink
refactor(hook): use rwx
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed May 22, 2024
1 parent bebdcf4 commit cdc41ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks.hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace lime
return;
}

if (!m_impl->source_page->protect(protection::read | protection::write | protection::execute))
if (!m_impl->source_page->protect(rwx))
{
assert(false && "Failed to protect original function for restoration");
return;
Expand Down

0 comments on commit cdc41ab

Please sign in to comment.