Przeglądaj źródła

+ Merged revision 1016

git-svn-id: branches/fixes_2_0@1021 -
michael 20 lat temu
rodzic
commit
2777681482
1 zmienionych plików z 9 dodań i 1 usunięć
  1. 9 1
      fcl/inc/registry.pp

+ 9 - 1
fcl/inc/registry.pp

@@ -67,7 +67,8 @@ type
                   BufSize: Integer; RegData: TRegDataType);
     procedure SetCurrentKey(Value: HKEY);
   public
-    constructor Create;
+    constructor Create; overload;
+    constructor Create(aaccess:longword);
     destructor Destroy; override;
 
     function CreateKey(const Key: string): Boolean;
@@ -182,6 +183,13 @@ begin
   SysRegCreate;
 end;
 
+Constructor TRegistry.Create(aaccess:longword);
+
+begin
+  Create;
+  FAccess     := aaccess;
+end;
+
 Destructor TRegistry.Destroy;
 begin
   CloseKey;