Explorar o código

* fix for a silly typo in the previous revision

git-svn-id: trunk@18189 -
Tomas Hajny %!s(int64=14) %!d(string=hai) anos
pai
achega
6992049034
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rtl/go32v2/sysutils.pp

+ 1 - 1
rtl/go32v2/sysutils.pp

@@ -337,7 +337,7 @@ begin
     (Dir [Length (Dir)] in AllowDirectorySeparators) and
 (* Do not remove '\' after ':' (root directory of a drive) 
    or in '\\' (invalid path, possibly broken UNC path). *)
-     not (Dir [Length (Dir - 1)] in (AllowDriveSeparators + AllowDirectorySeparators)) then
+     not (Dir [Length (Dir) - 1] in (AllowDriveSeparators + AllowDirectorySeparators)) then
     dir:=copy(dir,1,length(dir)-1);
   Result := FileGetAttr (Dir) and faDirectory = faDirectory;
 end;