(retro_file.c) HAVE_BUFFERED_IO - correct fread/fwrite arguments

This commit is contained in:
twinaphex 2015-09-18 03:21:56 +02:00
parent 08456c8541
commit b51e418c4c

View File

@ -130,7 +130,7 @@ ssize_t retro_fread(RFILE *stream, void *s, size_t len)
#if defined(VITA) || defined(PSP)
return sceIoRead(stream->fd, s, len);
#elif defined(HAVE_BUFFERED_IO)
return fread(s, len, 1, stream->fd);
return fread(s, 1, len, stream->fd);
#else
return read(stream->fd, s, len);
#endif
@ -143,7 +143,7 @@ ssize_t retro_fwrite(RFILE *stream, const void *s, size_t len)
#if defined(VITA) || defined(PSP)
return sceIoWrite(stream->fd, s, len);
#elif defined(HAVE_BUFFERED_IO)
return fwrite(s, len, 1, stream->fd);
return fwrite(s, 1, len, stream->fd);
#else
return write(stream->fd, s, len);
#endif