diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-11-04 14:59:46 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-11-04 14:59:46 +0000 |
commit | c9fb0982505291c6efab4abfc805fc907c575933 (patch) | |
tree | ef4186827fe30bdfe685bdfce3f058c56cf351af /firmware/common | |
parent | 6a8900b528922b4b26ce2f582233036da14c2614 (diff) | |
download | rockbox-c9fb0982505291c6efab4abfc805fc907c575933.tar.gz rockbox-c9fb0982505291c6efab4abfc805fc907c575933.zip |
Bugfix: lseek() did not invalidate sector cache when seeking to start of file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2803 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c index 7f0e0cd9bd..219858cff2 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c | |||
@@ -386,6 +386,8 @@ int lseek(int fd, int offset, int whence) | |||
386 | } | 386 | } |
387 | openfiles[fd].cacheoffset = sectoroffset; | 387 | openfiles[fd].cacheoffset = sectoroffset; |
388 | } | 388 | } |
389 | else | ||
390 | openfiles[fd].cacheoffset = -1; | ||
389 | } | 391 | } |
390 | else | 392 | else |
391 | if ( openfiles[fd].cacheoffset != -1 ) | 393 | if ( openfiles[fd].cacheoffset != -1 ) |