Przeglądaj źródła

also return the colon for ExtractFileDrive on Amiga/MorphOS

git-svn-id: trunk@24765 -
Károly Balogh 12 lat temu
rodzic
commit
60879c9c4f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      rtl/objpas/sysutils/fina.inc

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

@@ -68,7 +68,7 @@ begin
     exit;
 {$IF DEFINED(AMIGA) OR DEFINED(MORPHOS)}
   i:=Pos(DriveSeparator,FileName);
-  if (i > 0) then Result:=Copy(FileName,1,i-1); 
+  if (i > 0) then Result:=Copy(FileName,1,i); 
 {$ELSE}
   If (FileName[2] in AllowDriveSeparators) then
     result:=Copy(FileName,1,2)