mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 17:49:43 +02:00
also return the colon for ExtractFileDrive on Amiga/MorphOS
git-svn-id: trunk@24765 -
This commit is contained in:
parent
4b820a1ca5
commit
60879c9c4f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user