From d83f2c61e8961259aa88078d8be6d90db2b4ed7b Mon Sep 17 00:00:00 2001 From: Maurice Heumann Date: Fri, 6 Dec 2024 06:57:39 +0100 Subject: [PATCH] Update memory_utils.hpp --- src/windows-emulator/memory_utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows-emulator/memory_utils.hpp b/src/windows-emulator/memory_utils.hpp index f317281..40fbcf5 100644 --- a/src/windows-emulator/memory_utils.hpp +++ b/src/windows-emulator/memory_utils.hpp @@ -36,10 +36,10 @@ inline memory_permission map_nt_to_emulator_protection(uint32_t nt_protection) case PAGE_EXECUTE_READ: return memory_permission::read | memory_permission::exec; case PAGE_EXECUTE_READWRITE: + return memory_permission::all; case PAGE_EXECUTE_WRITECOPY: default: throw std::runtime_error("Failed to map protection"); - //return memory_permission::all; } }