27 Jan
2026
27 Jan
'26
8:32 a.m.
eric pouech (@epo) commented about programs/where/main.c:
int __cdecl wmain(int argc, WCHAR *argv[]) { WCHAR *pattern, *colon, *search_paths, *search_path, *next_search_path; + DWORD flags = 0; int i;
for (i = 0; i < argc; i++) { - if (argv[i][0] == '/') + if (argv[i][0] == '/' && wcslen(argv[i]) == 2) but you don't handle options in second loop, and to /q still will be handled as pattern argument
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9975#note_128114