Reverted problematic change (It breaks Crysis again, but FH2 works again)

This commit is contained in:
Gliniak 2020-09-26 22:11:18 +02:00 committed by randprint
parent 4afbd0c446
commit d82abd053d
1 changed files with 1 additions and 2 deletions

View File

@ -112,8 +112,7 @@ dword_result_t NtAllocateVirtualMemory(lpdword_t base_addr_ptr,
} else { } else {
// Adjust size. // Adjust size.
page_size = 4 * 1024; page_size = 4 * 1024;
if (alloc_type & X_MEM_LARGE_PAGES || if (alloc_type & X_MEM_LARGE_PAGES) {
(alloc_type & X_MEM_RESERVE && !(alloc_type & X_MEM_COMMIT))) {
page_size = 64 * 1024; page_size = 64 * 1024;
} }
} }