TShellTreeView: fix bug in SetPath if AValue was an absolute path but still had '..' in it.

This commit is contained in:
Bart 2024-01-23 23:24:05 +01:00
parent af1035188c
commit b3ccc3d69a

View File

@ -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]);