VFS: Fix return value of VFileFILE.seek
Extrems metaradil@gmail.com
Sun, 03 Jan 2016 11:43:31 -0500
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/util/vfs/vfs-file.c
→
src/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) {