7 Dec
2022
7 Dec
'22
10:41 a.m.
eric pouech (@epo) commented about programs/cmd/batch.c:
size = GetEnvironmentVariableW(env, NULL, 0); if (size > 0) { - WCHAR *fullpath = heap_xalloc(size * sizeof(WCHAR)); + WCHAR *fullpath = xalloc(size * sizeof(WCHAR));
while you're changing it, you can IMO use malloc here as the case of an OOM condition is handled below -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1721#note_18981