Skip to content

Commit a385af8

Browse files
committed
Merge pull request git-for-windows#1908 from benpeart/FindFirstFileEx-gfw
fscache: use FindFirstFileExW to avoid retrieving the short name
2 parents 3e7af43 + 0570892 commit a385af8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compat/win32/fscache.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ static struct fsentry *fsentry_create_list(const struct fsentry *dir,
215215
pattern[wlen] = 0;
216216

217217
/* open find handle */
218-
h = FindFirstFileW(pattern, &fdata);
218+
h = FindFirstFileExW(pattern, FindExInfoBasic, &fdata, FindExSearchNameMatch,
219+
NULL, FIND_FIRST_EX_LARGE_FETCH);
219220
if (h == INVALID_HANDLE_VALUE) {
220221
err = GetLastError();
221222
*dir_not_found = 1; /* or empty directory */

0 commit comments

Comments
 (0)