We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21b7200 + 66deab4 commit cd2bc1aCopy full SHA for cd2bc1a
compat/mingw.c
@@ -768,8 +768,8 @@ static int has_valid_directory_prefix(wchar_t *wfilename)
768
wfilename[n] = L'\0';
769
attributes = GetFileAttributesW(wfilename);
770
wfilename[n] = c;
771
- if (attributes == FILE_ATTRIBUTE_DIRECTORY ||
772
- attributes == FILE_ATTRIBUTE_DEVICE)
+ if (attributes &
+ (FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_DEVICE))
773
return 1;
774
if (attributes == INVALID_FILE_ATTRIBUTES)
775
switch (GetLastError()) {
0 commit comments