12 Feb
2024
12 Feb
'24
9:19 p.m.
Alexandre Julliard (@julliard) commented about programs/where/main.c:
+ wcscpy(glob, search_path); + wcscat(glob, L"\\"); + wcscat(glob, pattern); + wcscat(glob, extensions[i]); + + handle = FindFirstFileExW(glob, FindExInfoBasic, &match, 0, NULL, 0); + more = (handle != INVALID_HANDLE_VALUE); + + while (more) + { + if (PathCombineW(match_path, search_path, match.cFileName)) + { + printf("%ls\n", match_path); + found = TRUE; + } + more = FindNextFileW(handle, &match); This is not the correct pattern for FindFirstFile/FindNextFile.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3368#note_60920