Browse Source

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

git-svn-id: trunk@29294 -
marcus 10 years ago
parent
commit
6767ed7103
1 changed files with 5 additions and 1 deletions
  1. 5 1
      rtl/objpas/sysutils/fina.inc

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

@@ -402,7 +402,11 @@ begin
   Result:=-1;
   Result:=-1;
   While I<=Length(DirName) do
   While I<=Length(DirName) do
     begin
     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 }
        { avoid error in case last char=pathdelim }
        (length(dirname)>i) then
        (length(dirname)>i) then
       begin
       begin