mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 22:49:34 +02:00
Amiga, AROS, MorphOS: Sysutils, GetDirs must also cut at DriveSeparator
git-svn-id: trunk@29294 -
This commit is contained in:
parent
c9ba9665dd
commit
6767ed7103
@ -402,7 +402,11 @@ begin
|
||||
Result:=-1;
|
||||
While I<=Length(DirName) do
|
||||
begin
|
||||
If CharInSet(DirName[i],AllowDirectorySeparators) and
|
||||
If (CharInSet(DirName[i],AllowDirectorySeparators)
|
||||
{$ifdef HASAMIGA}
|
||||
or (DirName[i] = DriveSeparator)
|
||||
{$endif}
|
||||
) and
|
||||
{ avoid error in case last char=pathdelim }
|
||||
(length(dirname)>i) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user