mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 19:09:27 +02:00
* correctly handle eof in typed files in iso mode
git-svn-id: trunk@46918 -
This commit is contained in:
parent
4de5195a9a
commit
e33f794eb6
@ -206,8 +206,10 @@ unit iso7185;
|
|||||||
|
|
||||||
procedure Get(var f:TypedFile);[IOCheck];
|
procedure Get(var f:TypedFile);[IOCheck];
|
||||||
Begin
|
Begin
|
||||||
if not(eof(f)) then
|
if not(system.eof(f)) then
|
||||||
BlockRead(f,(pbyte(@f)+sizeof(FileRec))^,1);
|
BlockRead(f,(pbyte(@f)+sizeof(FileRec))^,1)
|
||||||
|
else
|
||||||
|
FileRec(f)._private[1]:=1;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user