mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 10:20:21 +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];
|
||||
Begin
|
||||
if not(eof(f)) then
|
||||
BlockRead(f,(pbyte(@f)+sizeof(FileRec))^,1);
|
||||
if not(system.eof(f)) then
|
||||
BlockRead(f,(pbyte(@f)+sizeof(FileRec))^,1)
|
||||
else
|
||||
FileRec(f)._private[1]:=1;
|
||||
End;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user