mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: ExcludeBackPathDelimiter with drive root
(cherry picked from commit ff2732ac56)
This commit is contained in:
parent
38e32dae79
commit
ae0e12fac0
1 changed files with 1 additions and 1 deletions
|
|
@ -766,7 +766,7 @@ var
|
|||
L: Integer;
|
||||
begin
|
||||
L:= Length(Path);
|
||||
if (L > 1) and (Path[L] in AllowDirectorySeparators) then
|
||||
if (L > 1) and (Path[L] in AllowDirectorySeparators) and (Path[L - 1] <> DriveSeparator) then
|
||||
Result:= Copy(Path, 1, L - 1)
|
||||
else
|
||||
Result:= Path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue