Step 1 of removing PanicAlert

This commit is contained in:
Henrik Rydgård committed 2020-07-19 20:33:25 +02:00
1 parent c5e0b799d9
commit 617bbcfb87
8 files changed
+16 -37

No files matched your search

+1 -2
View File
@@ -292,8 +292,7 @@ bool ProtectMemoryPages(const void* ptr, size_t size, uint32_t memProtFlags) {
if (PlatformIsWXExclusive()) {
if ((memProtFlags & (MEM_PROT_WRITE | MEM_PROT_EXEC)) == (MEM_PROT_WRITE | MEM_PROT_EXEC)) {
ERROR_LOG(MEMMAP, "Bad memory protection %d!", memProtFlags);
PanicAlert("Bad memory protect : W^X is in effect, can't both write and exec");
_assert_msg_(false, "Bad memory protect flags %d: W^X is in effect, can't both write and exec", memProtFlags);
}
}
// Note - VirtualProtect will affect the full pages containing the requested range.