Skip to content

Commit e4438e6

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 e442ffb + b493c58 commit e4438e6

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
@@ -206,7 +206,8 @@ static struct fsentry *fsentry_create_list(const struct fsentry *dir,
206206
pattern[wlen] = 0;
207207

208208
/* open find handle */
209-
h = FindFirstFileW(pattern, &fdata);
209+
h = FindFirstFileExW(pattern, FindExInfoBasic, &fdata, FindExSearchNameMatch,
210+
NULL, FIND_FIRST_EX_LARGE_FETCH);
210211
if (h == INVALID_HANDLE_VALUE) {
211212
err = GetLastError();
212213
*dir_not_found = 1; /* or empty directory */

0 commit comments

Comments
 (0)