From 73473015fd9bf28cf0ccb4747961e4097144ef39 Mon Sep 17 00:00:00 2001 From: koldo Date: Sun, 16 Oct 2016 14:35:36 +0000 Subject: [PATCH] *SysInfo: Fixed error in GetDriveInformation git-svn-id: svn://ultimatepp.org/upp/trunk@10325 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/SysInfo/SysInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazaar/SysInfo/SysInfo.cpp b/bazaar/SysInfo/SysInfo.cpp index 3ff503dee..a3decbed2 100644 --- a/bazaar/SysInfo/SysInfo.cpp +++ b/bazaar/SysInfo/SysInfo.cpp @@ -1528,7 +1528,7 @@ bool GetDriveInformation(String drive, String &type, String &volume, /*uint64 &s case DRIVE_UNKNOWN: type = "Drive unknown"; break; case DRIVE_NO_ROOT_DIR: type = "The root directory does not exist"; break; case DRIVE_REMOVABLE: - switch (*sb) { + switch (drive[0]) { case 'A': case 'B': type = "Floppy"; volume = fileSystem = "";