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 ae46e13 + ef302c8 commit c5597ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compat/mingw.c
Expand Up @@ -1012,8 +1012,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 c5597ba

Please sign in to comment.