mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 21:51:34 +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"';
|
SRegSetDataFailed = 'Failed to set data for value "%s"';
|
||||||
SRegGetDataFailed = 'Failed to get data for value "%s"';
|
SRegGetDataFailed = 'Failed to get data for value "%s"';
|
||||||
|
|
||||||
|
var
|
||||||
|
GlobalXMLFile : Boolean = False;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
{ ---------------------------------------------------------------------
|
{ ---------------------------------------------------------------------
|
||||||
|
@ -10,9 +10,11 @@ Const
|
|||||||
XFileName = 'reg.xml';
|
XFileName = 'reg.xml';
|
||||||
|
|
||||||
Procedure TRegistry.SysRegCreate;
|
Procedure TRegistry.SysRegCreate;
|
||||||
|
var s : string;
|
||||||
begin
|
begin
|
||||||
FSysData:=TXMLRegistry.Create(XFileName);
|
s:=includetrailingpathdelimiter(GetAppConfigDir(GlobalXMLFile));
|
||||||
|
ForceDirectories(s);
|
||||||
|
FSysData:=TXMLRegistry.Create(s+XFileName);
|
||||||
TXmlRegistry(FSysData).AutoFlush:=False;
|
TXmlRegistry(FSysData).AutoFlush:=False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user