Skip to content

Commit e9a6b2e

Browse files
committed
Merge pull request #1908 from benpeart/FindFirstFileEx-gfw
fscache: use FindFirstFileExW to avoid retrieving the short name
2 parents 4fc613a + a9ee56e commit e9a6b2e

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

193193
/* open find handle */
194-
h = FindFirstFileW(pattern, &fdata);
194+
h = FindFirstFileExW(pattern, FindExInfoBasic, &fdata, FindExSearchNameMatch,
195+
NULL, FIND_FIRST_EX_LARGE_FETCH);
195196
if (h == INVALID_HANDLE_VALUE) {
196197
err = GetLastError();
197198
*dir_not_found = 1; /* or empty directory */

0 commit comments

Comments
 (0)