forked from len0rd/rockbox
lseek() bug: It would claim cached sector even if that was not the case
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1095 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0d7e2cf2e0
commit
866600216e
1 changed files with 1 additions and 1 deletions
|
@ -266,9 +266,9 @@ int lseek(int fd, int offset, int whence)
|
|||
errno = EIO;
|
||||
return -1;
|
||||
}
|
||||
openfiles[fd].cacheoffset = sectoroffset;
|
||||
}
|
||||
|
||||
openfiles[fd].cacheoffset = sectoroffset;
|
||||
openfiles[fd].fileoffset = pos;
|
||||
|
||||
return pos;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue