mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
(retro_file.c) HAVE_BUFFERED_IO - correct fread/fwrite arguments
This commit is contained in:
parent
08456c8541
commit
b51e418c4c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user