Skip to content

Commit

Permalink
Merge pull request #1908 from benpeart/FindFirstFileEx-gfw
Browse files Browse the repository at this point in the history
fscache: use FindFirstFileExW to avoid retrieving the short name
  • Loading branch information
dscho authored and Git for Windows Build Agent committed Oct 21, 2024
2 parents d5f937b + 6409a92 commit 96bd2d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compat/win32/fscache.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ static struct fsentry *fsentry_create_list(const struct fsentry *dir,
pattern[wlen] = 0;

/* open find handle */
h = FindFirstFileW(pattern, &fdata);
h = FindFirstFileExW(pattern, FindExInfoBasic, &fdata, FindExSearchNameMatch,
NULL, FIND_FIRST_EX_LARGE_FETCH);
if (h == INVALID_HANDLE_VALUE) {
err = GetLastError();
*dir_not_found = 1; /* or empty directory */
Expand Down

0 comments on commit 96bd2d6

Please sign in to comment.