Skip to content

Commit c1e3a50

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge pull request #3753 from pgrmega/patch-2
Fix when lazy caching of network shares tags directories were just created with previously-unhandled attributes
2 parents ce68155 + b4f08ee commit c1e3a50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compat/mingw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,8 +1012,8 @@ static int has_valid_directory_prefix(wchar_t *wfilename)
10121012
wfilename[n] = L'\0';
10131013
attributes = GetFileAttributesW(wfilename);
10141014
wfilename[n] = c;
1015-
if (attributes == FILE_ATTRIBUTE_DIRECTORY ||
1016-
attributes == FILE_ATTRIBUTE_DEVICE)
1015+
if (attributes &
1016+
(FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_DEVICE))
10171017
return 1;
10181018
if (attributes == INVALID_FILE_ATTRIBUTES)
10191019
switch (GetLastError()) {

0 commit comments

Comments
 (0)