1
0
Fork 0
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:
Björn Stenberg 2002-06-19 17:01:58 +00:00
parent 0d7e2cf2e0
commit 866600216e

View file

@ -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;