mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 18:19:54 +02:00
* 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:
parent
8812f9e020
commit
be158cec7a
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user