diff --git a/Source/Core/Common/Src/MemoryUtil.cpp b/Source/Core/Common/Src/MemoryUtil.cpp index ee46dac345..0a5a64322a 100644 --- a/Source/Core/Common/Src/MemoryUtil.cpp +++ b/Source/Core/Common/Src/MemoryUtil.cpp @@ -48,8 +48,10 @@ void* AllocateExecutableMemory(size_t size, bool low) if (ptr == NULL) PanicAlert("Failed to allocate executable memory"); +#ifdef _M_X64 if ((u64)ptr >= 0x80000000 && low == true) PanicAlert("Executable memory ended up above 2GB!"); +#endif return ptr; }