* fixed TRegistry.ChangeKey

git-svn-id: trunk@1818 -
This commit is contained in:
florian 2005-11-24 21:44:40 +00:00
parent 446c24ed77
commit ee18b4f6ce
2 changed files with 4 additions and 2 deletions

View File

@ -207,7 +207,7 @@ end;
function TRegistry.GetBaseKey(Relative: Boolean): HKey;
begin
If Relative Then
If Relative and (CurrentKey<>0) Then
Result := CurrentKey
else
Result := RootKey;

View File

@ -226,7 +226,9 @@ end;
procedure TRegistry.ChangeKey(Value: HKey; const Path: String);
begin
CloseKey;
FCurrentKey:=Value;
FCurrentPath:=Path;
end;
procedure TRegistry.GetKeyNames(Strings: TStrings);