Skip to content

Commit ca8ac11

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
Merge pull request #1908 from benpeart/FindFirstFileEx-gfw
fscache: use FindFirstFileExW to avoid retrieving the short name
2 parents e62c067 + a4c5195 commit ca8ac11

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

210210
/* open find handle */
211-
h = FindFirstFileW(pattern, &fdata);
211+
h = FindFirstFileExW(pattern, FindExInfoBasic, &fdata, FindExSearchNameMatch,
212+
NULL, FIND_FIRST_EX_LARGE_FETCH);
212213
if (h == INVALID_HANDLE_VALUE) {
213214
err = GetLastError();
214215
*dir_not_found = 1; /* or empty directory */

0 commit comments

Comments
 (0)