mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-10 12:09:25 +02:00
* partial fix for 11156
git-svn-id: trunk@10816 -
This commit is contained in:
parent
fa6c504041
commit
d2252b8737
@ -192,6 +192,9 @@ ResourceString
|
||||
SRegSetDataFailed = 'Failed to set data for value "%s"';
|
||||
SRegGetDataFailed = 'Failed to get data for value "%s"';
|
||||
|
||||
var
|
||||
GlobalXMLFile : Boolean = False;
|
||||
|
||||
implementation
|
||||
|
||||
{ ---------------------------------------------------------------------
|
||||
|
@ -10,9 +10,11 @@ Const
|
||||
XFileName = 'reg.xml';
|
||||
|
||||
Procedure TRegistry.SysRegCreate;
|
||||
|
||||
var s : string;
|
||||
begin
|
||||
FSysData:=TXMLRegistry.Create(XFileName);
|
||||
s:=includetrailingpathdelimiter(GetAppConfigDir(GlobalXMLFile));
|
||||
ForceDirectories(s);
|
||||
FSysData:=TXMLRegistry.Create(s+XFileName);
|
||||
TXmlRegistry(FSysData).AutoFlush:=False;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user