* reset I/O result before and after the implicit close calls in ISO pascal mode,

this avoids further I/O operations to be carried out, resolves issue #32743

git-svn-id: trunk@38301 -
This commit is contained in:
florian 2018-02-20 21:30:30 +00:00
parent 8812f9e020
commit be158cec7a

View File

@ -672,7 +672,11 @@ end;
Procedure fpc_textclose_iso(var t : Text);compilerproc;
begin
{ reset inout result as this procedure is only called by the compiler and no I/O checking is carried out,
so further I/O does not fail }
inoutres:=0;
close(t);
inoutres:=0;
end;