mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 13:49:40 +02:00
* 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:
parent
050a342101
commit
5d69ba2cd8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user