[PATCH v5 8/8] comctl32/listbox: Shrink the item array in a helper function

Huw Davies huw at codeweavers.com
Thu Nov 22 08:13:45 CST 2018


On Thu, Nov 22, 2018 at 03:10:21PM +0100, Alexandre Julliard wrote:
> Huw Davies <huw at codeweavers.com> writes:
> > I was hoping for a common allocation function (resize_storage() say),
> > that would take the length of the required array, not one function to
> > grow and another to shrink.
> >
> > Also, let's insist that LB_ARRAY_GRANULARITY is a power of two, to
> > simplify these adjustments.
> 
> Note that doubling the size when growing would be better than a fixed
> constant (but maybe we want to avoid changing even more things at this
> point...)

Yeah, I was hoping to walk before we run.

Huw.



More information about the wine-devel mailing list