Amiga, AROS, MorphOS: Sysutils, GetDirs must also cut at DriveSeparator

git-svn-id: trunk@29294 -
This commit is contained in:
marcus 2014-12-14 20:16:23 +00:00
parent c9ba9665dd
commit 6767ed7103

View File

@ -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