Merge pull request #3131 from flysand7/non-zeroed

os2: Add .Resize_Non_Zeroed allocation mode to os2/heap_windows
This commit is contained in:
gingerBill
2024-01-24 11:21:09 +00:00
committed by GitHub

View File

@@ -85,7 +85,7 @@ _heap_allocator_proc :: proc(allocator_data: rawptr, mode: mem.Allocator_Mode,
case .Free_All:
return nil, .Mode_Not_Implemented
case .Resize:
case .Resize, .Resize_Non_Zeroed:
if old_memory == nil {
return aligned_alloc(size, alignment, true)
}