mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Detect if XML config files have <doublecmd> as root key name.
This commit is contained in:
parent
5c4cb8ba90
commit
9bdc7fc2ce
1 changed files with 2 additions and 0 deletions
|
|
@ -499,6 +499,8 @@ begin
|
|||
if FileStream.Size = 0 then
|
||||
raise EFileEmpty.Create('');
|
||||
ReadXMLFile(TmpDoc, FileStream, FilenameToURI(AFilename));
|
||||
if TmpDoc.DocumentElement.NodeName <> ApplicationName then
|
||||
raise EXMLReadError.Create('Root element is not <' + ApplicationName + '>.');
|
||||
FDoc.Free;
|
||||
FDoc := TmpDoc;
|
||||
finally
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue