Nikolay Sivov (@nsivov) commented about dlls/scrrun/tests/filesystem.c:
+ len = GetShortPathNameW(long_path, expected_path, MAX_PATH); + ok(len && len < MAX_PATH, "GetShortPathNameW failed, len %lu\n", len); + + path = SysAllocString(long_path); + hr = IFileSystem3_GetFile(fs3, path, &file); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + SysFreeString(path); + + hr = IFile_get_ShortPath(file, NULL); + ok(hr == E_POINTER, "Unexpected hr %#lx.\n", hr); + + hr = IFile_get_ShortPath(file, &str); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + ok(!lstrcmpiW(str, expected_path), "got %s, expected %s\n", + wine_dbgstr_w(str), wine_dbgstr_w(expected_path)); + SysFreeString(str); Do you need this case-insensitive?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10675#note_136668