Alexandre Julliard (@julliard) commented about programs/where/main.c:
WCHAR current_dir[MAX_PATH];
if (GetCurrentDirectoryW(ARRAY_SIZE(current_dir), current_dir))
search(current_dir, pattern);
}
search_path = search_paths;
do
{
semicolon = wcschr(search_path, ';');
if (semicolon)
*semicolon = 0;
if (*search_path)
search(search_path, pattern);
search_path = semicolon + 1;
}
while (semicolon);
and wcstok().