forked from len0rd/rockbox
lseek: Adjust cacheoffset if cache is used
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1199 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
41455bd76a
commit
88c861ed41
1 changed files with 3 additions and 0 deletions
|
|
@ -268,6 +268,9 @@ int lseek(int fd, int offset, int whence)
|
|||
}
|
||||
openfiles[fd].cacheoffset = sectoroffset;
|
||||
}
|
||||
else
|
||||
if ( openfiles[fd].cacheoffset != -1 )
|
||||
openfiles[fd].cacheoffset = sectoroffset;
|
||||
|
||||
openfiles[fd].fileoffset = pos;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue