* TXmlRegistry: When a key name starts with \ or / it means the absolute path to the key is specified. So ignore the currently selected key when an absolute key is requested.

git-svn-id: trunk@48209 -
This commit is contained in:
yury 2021-01-19 17:30:11 +00:00
parent 050a342101
commit 5d69ba2cd8

View File

@ -259,6 +259,8 @@ begin
Result:=(Length(KeyPath)>0);
If Not Result then
Exit;
If (KeyPath[1] in ['/','\']) then
FCurrentElement:=Nil;
KeyPath:=NormalizeKey(KeyPath);
If (FCurrentElement<>nil) then
begin
@ -907,6 +909,8 @@ begin
Result:=Nil;
If (Length(S)=0) then
Exit;
if S[1] in ['/','\'] then
FCurrentElement:=nil;
S:=NormalizeKey(S);
If (FCurrentElement<>nil) then
begin