Changeset 404 for Common/URegistry.pas


Ignore:
Timestamp:
Aug 13, 2012, 10:03:31 AM (12 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/URegistry.pas

    r400 r404  
    3434      DefaultValue: Double): Double;
    3535    function DeleteKeyRecursive(const Key: string): Boolean;
     36    function OpenKey(const Key: string; CanCreate: Boolean): Boolean;
    3637  end;
    3738
     
    9798end;
    9899
     100function TRegistryEx.OpenKey(const Key: string; CanCreate: Boolean): Boolean;
     101begin
     102  {$IFDEF Linux}
     103  CloseKey;
     104  {$ENDIF}
     105  Result := inherited OpenKey(Key, CanCreate);
     106end;
     107
    99108function TRegistryEx.ReadBoolWithDefault(const Name: string;
    100109  DefaultValue: Boolean): Boolean;
Note: See TracChangeset for help on using the changeset viewer.