21 Dec
2006
21 Dec
'06
5:20 a.m.
Huw Davies <huw(a)codeweavers.com> writes:
+ ret = malloc(sizeof(*ret)); + if(!ret) + { + CloseResFile(res_ref); + return NULL; + } + list_init(ret);
It's better to avoid using malloc() in Wine. Also it seems to me it would be cleaner to return an array of char*, instead of a struct list that forces the caller to make assumptions about the type of the list elements. -- Alexandre Julliard julliard(a)winehq.org