diff --git a/src/hooks.hook.cpp b/src/hooks.hook.cpp index 7b9ecf8..3de53ec 100644 --- a/src/hooks.hook.cpp +++ b/src/hooks.hook.cpp @@ -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;