Skip to content

Commit cd2bc1a

Browse files
dschovdye
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 21b7200 + 66deab4 commit cd2bc1a

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
@@ -768,8 +768,8 @@ static int has_valid_directory_prefix(wchar_t *wfilename)
768768
wfilename[n] = L'\0';
769769
attributes = GetFileAttributesW(wfilename);
770770
wfilename[n] = c;
771-
if (attributes == FILE_ATTRIBUTE_DIRECTORY ||
772-
attributes == FILE_ATTRIBUTE_DEVICE)
771+
if (attributes &
772+
(FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_DEVICE))
773773
return 1;
774774
if (attributes == INVALID_FILE_ATTRIBUTES)
775775
switch (GetLastError()) {

0 commit comments

Comments
 (0)