зеркало из https://github.com/microsoft/git.git
Merge pull request #1908 from benpeart/FindFirstFileEx-gfw
fscache: use FindFirstFileExW to avoid retrieving the short name
This commit is contained in:
Коммит
5dad60c9b7
|
@ -208,7 +208,8 @@ static struct fsentry *fsentry_create_list(const struct fsentry *dir,
|
||||||
pattern[wlen] = 0;
|
pattern[wlen] = 0;
|
||||||
|
|
||||||
/* open find handle */
|
/* open find handle */
|
||||||
h = FindFirstFileW(pattern, &fdata);
|
h = FindFirstFileExW(pattern, FindExInfoBasic, &fdata, FindExSearchNameMatch,
|
||||||
|
NULL, FIND_FIRST_EX_LARGE_FETCH);
|
||||||
if (h == INVALID_HANDLE_VALUE) {
|
if (h == INVALID_HANDLE_VALUE) {
|
||||||
err = GetLastError();
|
err = GetLastError();
|
||||||
*dir_not_found = 1; /* or empty directory */
|
*dir_not_found = 1; /* or empty directory */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче