mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: the '..' issue in TFile.SplitIntoNameAndExtension()
This commit is contained in:
parent
19bfc7bc06
commit
d843b84a80
1 changed files with 2 additions and 1 deletions
|
|
@ -856,7 +856,8 @@ begin
|
|||
I := Length(FileName);
|
||||
while (I > 0) and (FileName[I] <> ExtensionSeparator) do
|
||||
Dec(I);
|
||||
if I > 1 then
|
||||
|
||||
if (I>1) and (FileName<>'.') and (FileName<>'..') then
|
||||
begin
|
||||
aFileNameOnly := Copy(FileName, 1, I - 1);
|
||||
aExtension := Copy(FileName, I + 1, MaxInt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue