11 Jun
2018
11 Jun
'18
3:29 a.m.
Dmitry Timoshkov <dmitry(a)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(a)winehq.org