Fix Windows build

This commit is contained in:
Mattias Jansson
2025-10-26 19:21:49 +01:00
parent 490e34d9f5
commit feb43aee0d

View File

@@ -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;