Error reporting on failed memory allocation

This commit is contained in:
offtkp 2024-09-27 01:28:37 +03:00
commit 6348dcb6e7

View file

@ -72,7 +72,7 @@ struct AddressSpace::Impl {
} }
reduction += ReductionOnFail; reduction += ReductionOnFail;
} }
ASSERT_MSG(virtual_base, "Unable to reserve virtual address space!"); ASSERT_MSG(virtual_base, "Unable to reserve virtual address space: {}", Common::GetLastErrorMsg());
// Take the reduction off of the system managed area, and leave the others unchanged. // Take the reduction off of the system managed area, and leave the others unchanged.
system_managed_base = virtual_base; system_managed_base = virtual_base;