* Fixed ExcludeLeadingPathDelimiter

git-svn-id: trunk@19316 -
This commit is contained in:
michael 2011-10-01 21:47:58 +00:00
parent c0995c2ffd
commit 908f9865d4

View File

@ -292,10 +292,10 @@ Var
L : Integer;
begin
L:=Length(Path);
If (L>0) and (Path[1] in AllowDirectorySeparators) then
Dec(L);
Result:=Copy(Path,2,L);
Result:=Path;
L:=Length(Result);
If (L>0) and (Result[1] in AllowDirectorySeparators) then
Delete(Result,1,1);
end;
function IsPathDelimiter(Const Path: string; Index: Integer): Boolean;