Skip to content
Permalink
Browse files

Merge pull request #1908 from benpeart/FindFirstFileEx-gfw

fscache: use FindFirstFileExW to avoid retrieving the short name
  • Loading branch information...
dscho committed Nov 5, 2018
2 parents 25a7f44 + 46c246e commit a7b6b033dc2393e3c4d679d942a8312de353c469
Showing with 2 additions and 1 deletion.
  1. +2 −1 compat/win32/fscache.c
@@ -206,7 +206,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 */

0 comments on commit a7b6b03

Please sign in to comment.
You can’t perform that action at this time.