Skip to content

Commit

Permalink
Merge pull request #3753 from pgrmega/patch-2
Browse files Browse the repository at this point in the history
Fix when lazy caching of network shares tags directories were just created with previously-unhandled attributes
  • Loading branch information
dscho authored and vdye committed Aug 11, 2022
2 parents 21b7200 + 66deab4 commit cd2bc1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compat/mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,8 @@ static int has_valid_directory_prefix(wchar_t *wfilename)
wfilename[n] = L'\0';
attributes = GetFileAttributesW(wfilename);
wfilename[n] = c;
if (attributes == FILE_ATTRIBUTE_DIRECTORY ||
attributes == FILE_ATTRIBUTE_DEVICE)
if (attributes &
(FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_DEVICE))
return 1;
if (attributes == INVALID_FILE_ATTRIBUTES)
switch (GetLastError()) {
Expand Down

0 comments on commit cd2bc1a

Please sign in to comment.