On Fri Nov 11 20:54:18 2022 +0000, Connor McAdams wrote:
This same function body is used in multiple places, just with different function names in each. A few examples are:
- `dlls/d3d10/effect.c`: d3d_array_reserve()
- `dlls/wined3d/utils.c`: wined3d_array_reserve()
- `dlls/d2d1/d2d1_private.h`: d2d_array_reserve()
I've just reused/renamed it. So I'm _assuming_ there was some reason behind the design decisions, but I myself didn't make them.
I think it might have been copied incorrectly when it was added to d2d? Line 45 here should be `new_capacity = element_count` to match what's in d3d10 and wined3d.