Turns out we were doing this for a (maybe not good, but reasonable) reason.
This commit is contained in:
parent
3078acd1eb
commit
63277e500c
|
@ -2795,7 +2795,6 @@ static PHYSFS_sint64 doBufferedWrite(PHYSFS_File *handle, const void *buffer,
|
||||||
} /* if */
|
} /* if */
|
||||||
|
|
||||||
/* would overflow buffer. Flush and then write the new objects, too. */
|
/* would overflow buffer. Flush and then write the new objects, too. */
|
||||||
/* !!! FIXME-3.0: this should refill the buffer, not flush everything down. */
|
|
||||||
BAIL_IF_ERRPASS(!PHYSFS_flush(handle), -1);
|
BAIL_IF_ERRPASS(!PHYSFS_flush(handle), -1);
|
||||||
return fh->io->write(fh->io, buffer, len);
|
return fh->io->write(fh->io, buffer, len);
|
||||||
} /* doBufferedWrite */
|
} /* doBufferedWrite */
|
||||||
|
|
Loading…
Reference in New Issue