Skip to content

Commit 386e2f7

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge pull request #1908 from benpeart/FindFirstFileEx-gfw
fscache: use FindFirstFileExW to avoid retrieving the short name
2 parents 5fb6de0 + 8900c93 commit 386e2f7

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

202202
/* open find handle */
203-
h = FindFirstFileW(pattern, &fdata);
203+
h = FindFirstFileExW(pattern, FindExInfoBasic, &fdata, FindExSearchNameMatch,
204+
NULL, FIND_FIRST_EX_LARGE_FETCH);
204205
if (h == INVALID_HANDLE_VALUE) {
205206
err = GetLastError();
206207
*dir_not_found = 1; /* or empty directory */

0 commit comments

Comments
 (0)