iOS buildfix, fix another comment

This commit is contained in:
Henrik Rydgard committed 2016-08-28 18:10:26 +02:00
1 parent 1e4b77fb49
commit 2a4f4ed41d
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -302,8 +302,8 @@ void ProtectMemoryPages(const void* ptr, size_t size, uint32_t memProtFlags) {
if ((memProtFlags & (MEM_PROT_WRITE | MEM_PROT_EXEC)) == (MEM_PROT_WRITE | MEM_PROT_EXEC))
PanicAlert("Bad memory protect : W^X is in effect, can't both write and exec");
}
// Note - both VirtualProtect and mprotect will affect the full pages containing the requested range,
// so no need to round ptr and size down/up.
// Note - both VirtualProtect will affect the full pages containing the requested range.
// mprotect does not seem to, at least not on Android unless I made a mistake somewhere, so we manually round.
#ifdef _WIN32
uint32_t protect = ConvertProtFlagsWin32(memProtFlags);
DWORD oldValue;