mirror of https://gitlab.com/basile.b/dexed.git
fix, protect against AV when Dfmt cannot be found
This commit is contained in:
parent
447d6e9e3a
commit
7b83026a3f
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue