From 19e717a7ccb0f4866d1f77d76a364bd3f20df106 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Thu, 30 May 2019 17:35:13 +0100 Subject: [PATCH] Windows: Removed A: and B: special cases from File::isOnHardDisk --- modules/juce_core/native/juce_win32_Files.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/juce_core/native/juce_win32_Files.cpp b/modules/juce_core/native/juce_win32_Files.cpp index 040e81d02f..bdc5029d20 100644 --- a/modules/juce_core/native/juce_win32_Files.cpp +++ b/modules/juce_core/native/juce_win32_Files.cpp @@ -580,10 +580,8 @@ bool File::isOnHardDisk() const 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_NO_ROOT_DIR; }