clang fix

This commit is contained in:
georgemoralis 2024-07-25 11:59:39 +03:00
parent 8bb6c0ddf0
commit 8fa6a8c036
1 changed files with 3 additions and 3 deletions

View File

@ -61,9 +61,9 @@ struct AddressSpace::Impl {
size_t reduction = 0; size_t reduction = 0;
size_t virtual_size = SystemManagedSize + SystemReservedSize + UserSize; size_t virtual_size = SystemManagedSize + SystemReservedSize + UserSize;
for (u32 i = 0; i < MaxReductions; i++) { for (u32 i = 0; i < MaxReductions; i++) {
virtual_base = static_cast<u8*>(VirtualAlloc2( virtual_base = static_cast<u8*>(VirtualAlloc2(process, NULL, virtual_size - reduction,
process, NULL, virtual_size - reduction, MEM_RESERVE | MEM_RESERVE_PLACEHOLDER,
MEM_RESERVE | MEM_RESERVE_PLACEHOLDER, PAGE_NOACCESS, &param, 1)); PAGE_NOACCESS, &param, 1));
if (virtual_base) { if (virtual_base) {
break; break;
} }