Re: [PATCH v7 0/1] MR3368: where: Implement search with default options.
12 Feb
2024
12 Feb
'24
9:19 p.m.
Alexandre Julliard (@julliard) commented about programs/where/main.c:
+ if (colon) + { + *colon = 0; + search_paths = pattern; + pattern = colon + 1; + } + else + { + DWORD len = GetEnvironmentVariableW(L"PATH", NULL, 0); + search_paths = malloc(len * sizeof(WCHAR)); + if (!search_paths) + { + ERR("Out of memory\n"); + return 1; + } + GetEnvironmentVariableW(L"PATH", search_paths, len); You want wgetenv().
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3368#note_60921
753
Age (days ago)
753
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard (@julliard)