fix, protect against AV when Dfmt cannot be found

This commit is contained in:
Basile Burg 2015-12-21 07:19:29 +01:00
parent 447d6e9e3a
commit 7b83026a3f
1 changed files with 2 additions and 0 deletions

View File

@ -253,6 +253,8 @@ var
begin begin
if not assigned(fDoc) then if not assigned(fDoc) then
exit; exit;
if not exeInSysPath('dfmt') then
exit;
fBackup.Assign(fDoc.Lines); fBackup.Assign(fDoc.Lines);
prc := TProcess.create(nil); prc := TProcess.create(nil);