The assumed Seek() position in the file cache was off by one byte.

david-pic-changes
Detlef Würkner 19 years ago
parent 6b1c597cba
commit ba0893c915
  1. 2
      builds/amiga/src/base/ftsystem.c

@ -305,7 +305,7 @@ Free_VecPooled( APTR poolHeader,
if ( (offset < sysfile->iobuf_start) || (offset + count > sysfile->iobuf_end) )
{
/* requested offset implies we need a buffer refill */
if ( !sysfile->iobuf_end || offset != (sysfile->iobuf_end + 1) )
if ( !sysfile->iobuf_end || offset != sysfile->iobuf_end )
{
/* a physical seek is necessary */
Seek( sysfile->file, offset, OFFSET_BEGINNING );

Loading…
Cancel
Save