Skip to content

Commit ddbdb99

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 2736448 + d94119a commit ddbdb99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compat/win32/fscache.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ static struct fsentry *fsentry_create_list(const struct fsentry *dir,
203203
pattern[wlen] = 0;
204204

205205
/* open find handle */
206-
h = FindFirstFileW(pattern, &fdata);
206+
h = FindFirstFileExW(pattern, FindExInfoBasic, &fdata, FindExSearchNameMatch,
207+
NULL, FIND_FIRST_EX_LARGE_FETCH);
207208
if (h == INVALID_HANDLE_VALUE) {
208209
err = GetLastError();
209210
*dir_not_found = 1; /* or empty directory */

0 commit comments

Comments
 (0)