mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 02:49:32 +01:00
* fix for a silly typo in the previous revision
git-svn-id: trunk@18189 -
This commit is contained in:
parent
bb2e98c4f1
commit
6992049034
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user