Reverted problematic change (It breaks Crysis again, but FH2 works again)
This commit is contained in:
parent
4afbd0c446
commit
d82abd053d
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue