mirror of
https://github.com/mjansson/rpmalloc.git
synced 2026-01-15 19:41:17 +01:00
Fix Windows build
This commit is contained in:
@@ -811,7 +811,7 @@ os_mcommit(void* address, size_t size) {
|
||||
}
|
||||
#if PLATFORM_WINDOWS
|
||||
if (!VirtualAlloc(address, size, MEM_COMMIT, PAGE_READWRITE)) {
|
||||
if (global_memory_interface->map_fail_callback && global_memory_interface->map_fail_callback(map_size))
|
||||
if (global_memory_interface->map_fail_callback && global_memory_interface->map_fail_callback(size))
|
||||
return os_mcommit(address, size);
|
||||
rpmalloc_assert(0, "Failed to commit virtual memory block");
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user