all repos — mgba @ 19b81a21634c6fccac226a14b03c63ea66a96e5b

mGBA Game Boy Advance Emulator

VFS: Fix return values of VFileFILE.read and .write
Jeffrey Pfau jeffrey@endrift.com
Tue, 15 Sep 2015 00:06:43 -0700
commit

19b81a21634c6fccac226a14b03c63ea66a96e5b

parent

54ea3dbbcf39eec26519a6ef8246bd1d9c0cdbb1

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -10,6 +10,7 @@ - GBA: Fix BIOS check on big endian

- Libretro: Fix a memory leak with the render buffer - GBA Audio: Fix 8-bit writes to audio channel 3 and 4 registers - GBA Audio: Fix audio channels being silenced at the wrong time + - VFS: Fix return values of VFileFILE.read and .write Misc: - Qt: Window size command line options are now supported - Qt: Increase usability of key mapper
M src/util/vfs/vfs-file.csrc/util/vfs/vfs-file.c

@@ -79,12 +79,12 @@ }

ssize_t _vffRead(struct VFile* vf, void* buffer, size_t size) { struct VFileFILE* vff = (struct VFileFILE*) vf; - return fread(buffer, size, 1, vff->file); + return fread(buffer, 1, size, vff->file); } ssize_t _vffWrite(struct VFile* vf, const void* buffer, size_t size) { struct VFileFILE* vff = (struct VFileFILE*) vf; - return fwrite(buffer, size, 1, vff->file); + return fwrite(buffer, 1, size, vff->file); } static void* _vffMap(struct VFile* vf, size_t size, int flags) {