ide: fix project compilation error after recent WaitOnExit change in the fpc 2.3.1

git-svn-id: trunk@19037 -
This commit is contained in:
paul 2009-03-20 03:55:16 +00:00
parent a8c551af68
commit 6efd1ca34f

View File

@ -168,10 +168,13 @@ begin
TheProcess.Execute;
end;
finally
TheProcess.WaitOnExit;
if not (TheProcess.ExitStatus in [0,1]) then begin
WriteError(Format(listCompilerInternalError,[TheProcess.ExitStatus]));
Result:=mrCancel;
if TheProcess.Running then
begin
TheProcess.WaitOnExit;
if not (TheProcess.ExitStatus in [0,1]) then begin
WriteError(Format(listCompilerInternalError,[TheProcess.ExitStatus]));
Result:=mrCancel;
end;
end;
end;
except