Skip to content

Commit cdc41ab

Browse files
committedMay 22, 2024··
refactor(hook): use rwx
1 parent bebdcf4 commit cdc41ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hooks.hook.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace lime
6666
return;
6767
}
6868

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

0 commit comments

Comments
 (0)
Please sign in to comment.