VFS: Fix return value of VFileFILE.seek

This commit is contained in:
Extrems 2016-01-03 11:43:31 -05:00 committed by Jeffrey Pfau
parent 76d486cc65
commit 7b090aa0d1
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ bool _vffClose(struct VFile* vf) {
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) {