mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 08:29:32 +01:00
* fixed TRegistry.ChangeKey
git-svn-id: trunk@1818 -
This commit is contained in:
parent
446c24ed77
commit
ee18b4f6ce
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user