Skip to content

Commit

Permalink
Update memory_utils.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 authored Dec 6, 2024
1 parent 69fac73 commit d83f2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows-emulator/memory_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit d83f2c6

Please sign in to comment.