Просмотр исходного кода

host_memory: Correct MEM_RESERVE_PLACEHOLDER

Microsoft defines `MEM_RESERVE_PLACEHOLDER` as `0x00040000`, but our
manually imported version of it drops the last zero.
lat9nq 5 лет назад
Родитель
Сommit
9a06b85b24
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/common/host_memory.cpp

+ 1 - 1
src/common/host_memory.cpp

@@ -34,7 +34,7 @@ constexpr size_t HugePageSize = 0x200000;
 
 
 // Manually imported for MinGW compatibility
 // Manually imported for MinGW compatibility
 #ifndef MEM_RESERVE_PLACEHOLDER
 #ifndef MEM_RESERVE_PLACEHOLDER
-#define MEM_RESERVE_PLACEHOLDER 0x0004000
+#define MEM_RESERVE_PLACEHOLDER 0x00040000
 #endif
 #endif
 #ifndef MEM_REPLACE_PLACEHOLDER
 #ifndef MEM_REPLACE_PLACEHOLDER
 #define MEM_REPLACE_PLACEHOLDER 0x00004000
 #define MEM_REPLACE_PLACEHOLDER 0x00004000