gingerBill 5 anni fa
parent
commit
ee78374281
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      core/os/os.odin

+ 1 - 1
core/os/os.odin

@@ -200,7 +200,7 @@ heap_allocator_proc :: proc(allocator_data: rawptr, mode: mem.Allocator_Mode,
 		// NOTE(bill): Does nothing
 
 	case .Resize:
-		return heap_resize(ptr, size);
+		return heap_resize(old_memory, size);
 	}
 
 	return nil;