os2: Add .Resize_Non_Zeroed allocation mode to os2/heap_windows

This commit is contained in:
flysand7
2024-01-24 15:51:47 +11:00
parent 98b539ac5c
commit a660098106

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)
}