Browse Source

Windows: Removed A: and B: special cases from File::isOnHardDisk

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
19e717a7cc
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      modules/juce_core/native/juce_win32_Files.cpp

+ 2
- 4
modules/juce_core/native/juce_win32_Files.cpp View File

@@ -580,10 +580,8 @@ bool File::isOnHardDisk() const
auto n = WindowsFileHelpers::getWindowsDriveType (getFullPathName()); auto n = WindowsFileHelpers::getWindowsDriveType (getFullPathName());
if (fullPath.toLowerCase()[0] <= 'b' && fullPath[1] == ':')
return n != DRIVE_REMOVABLE;
return n != DRIVE_CDROM
return n != DRIVE_REMOVABLE
&& n != DRIVE_CDROM
&& n != DRIVE_REMOTE && n != DRIVE_REMOTE
&& n != DRIVE_NO_ROOT_DIR; && n != DRIVE_NO_ROOT_DIR;
} }


Loading…
Cancel
Save