clang fix
This commit is contained in:
parent
8bb6c0ddf0
commit
8fa6a8c036
|
@ -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, ¶m, 1));
|
PAGE_NOACCESS, ¶m, 1));
|
||||||
if (virtual_base) {
|
if (virtual_base) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue