mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-29 07:49:53 +02:00
TShellTreeView: fix bug in SetPath if AValue was an absolute path but still had '..' in it.
This commit is contained in:
parent
af1035188c
commit
b3ccc3d69a
@ -1539,7 +1539,8 @@ begin
|
||||
end
|
||||
else
|
||||
begin
|
||||
//AValue is an absoulte path to begin with
|
||||
//AValue is an absoulte path to begin with , but still needs expanding (because TryCreateRelativePath requires this)
|
||||
AValue := ExpandFilenameUtf8(AValue);
|
||||
//if not DirectoryExistsUtf8(AValue) then
|
||||
if not Exists(AValue) then
|
||||
Raise EInvalidPath.CreateFmt(sShellCtrlsInvalidPath,[AValue]);
|
||||
|
Loading…
Reference in New Issue
Block a user