all repos — mgba @ 7b090aa0d129514f9af6cf6f0e3c3d385e35060f

mGBA Game Boy Advance Emulator

VFS: Fix return value of VFileFILE.seek
Extrems metaradil@gmail.com
Sun, 03 Jan 2016 11:43:31 -0500
commit

7b090aa0d129514f9af6cf6f0e3c3d385e35060f

parent

76d486cc655cd2f0943c336cfaa8f930a0687b15

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

jump to
M src/util/vfs/vfs-file.csrc/util/vfs/vfs-file.c

@@ -74,7 +74,8 @@ }

off_t _vffSeek(struct VFile* vf, off_t offset, int whence) { struct VFileFILE* vff = (struct VFileFILE*) vf; - return fseek(vff->file, offset, whence); + fseek(vff->file, offset, whence); + return ftell(vff->file); } ssize_t _vffRead(struct VFile* vf, void* buffer, size_t size) {