mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 14:49:17 +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;
|
exit;
|
||||||
{$IF DEFINED(AMIGA) OR DEFINED(MORPHOS)}
|
{$IF DEFINED(AMIGA) OR DEFINED(MORPHOS)}
|
||||||
i:=Pos(DriveSeparator,FileName);
|
i:=Pos(DriveSeparator,FileName);
|
||||||
if (i > 0) then Result:=Copy(FileName,1,i-1);
|
if (i > 0) then Result:=Copy(FileName,1,i);
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
If (FileName[2] in AllowDriveSeparators) then
|
If (FileName[2] in AllowDriveSeparators) then
|
||||||
result:=Copy(FileName,1,2)
|
result:=Copy(FileName,1,2)
|
||||||
|
Loading…
Reference in New Issue
Block a user