[PATCH 2/5] mstask: Implement IEnumWorkItems::Next().

Alexandre Julliard julliard at winehq.org
Mon Jun 11 03:29:00 CDT 2018


Dmitry Timoshkov <dmitry at baikal.ru> writes:

> +        if (is_file(&data))
> +        {
> +            LPWSTR *new_list;
> +
> +            if (!list)
> +                new_list = CoTaskMemAlloc((enumerated + 1) * sizeof(list[0]));
> +            else
> +                new_list = CoTaskMemRealloc(list, (enumerated + 1) * sizeof(list[0]));

It would be better to double the allocated size.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list