diff --git a/Common/MemoryUtil.cpp b/Common/MemoryUtil.cpp index 803a097712..98ca6bcaab 100644 --- a/Common/MemoryUtil.cpp +++ b/Common/MemoryUtil.cpp @@ -329,6 +329,7 @@ int GetMemoryProtectPageSize() { #ifdef _WIN32 if (sys_info.dwPageSize == 0) GetSystemInfo(&sys_info); + return sys_info.dwPageSize; #endif return MEM_PAGE_SIZE; -} \ No newline at end of file +}