Ver Fonte

Turns out we were doing this for a (maybe not good, but reasonable) reason.

Ryan C. Gordon há 8 anos atrás
pai
commit
63277e500c
1 ficheiros alterados com 0 adições e 1 exclusões
  1. 0 1
      src/physfs.c

+ 0 - 1
src/physfs.c

@@ -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 */