Browse Source

SysUtils: make GetDriveIDFromLetter accept lowercase letters

git-svn-id: trunk@44389 -
ondrej 5 years ago
parent
commit
eb9a4eca91
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/objpas/sysutils/disk.inc

+ 1 - 1
rtl/objpas/sysutils/disk.inc

@@ -19,7 +19,7 @@ begin
   if length(ADrive)=0 then
   if length(ADrive)=0 then
     Result:=0
     Result:=0
   else
   else
-    Result := (Ord(ADrive[1]))-64;
+    Result := Ord(UpCase(ADrive[1]))-64;
 end;
 end;
 
 
 {$push}
 {$push}