Huw Davies huw@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.