소스 검색

* Start at root with setkey if key starts with / or \ (bug id 20761)

git-svn-id: trunk@26695 -
michael 11 년 전
부모
커밋
628689e3e3
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      packages/fcl-registry/src/xmlreg.pp

+ 2 - 0
packages/fcl-registry/src/xmlreg.pp

@@ -163,6 +163,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