Browse Source

* correctly handle eof in typed files in iso mode

git-svn-id: trunk@46918 -
florian 4 years ago
parent
commit
e33f794eb6
1 changed files with 4 additions and 2 deletions
  1. 4 2
      rtl/inc/iso7185.pp

+ 4 - 2
rtl/inc/iso7185.pp

@@ -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;