summaryrefslogtreecommitdiff
path: root/firmware/common/file.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-11-04 14:59:46 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-11-04 14:59:46 +0000
commitc9fb0982505291c6efab4abfc805fc907c575933 (patch)
treeef4186827fe30bdfe685bdfce3f058c56cf351af /firmware/common/file.c
parent6a8900b528922b4b26ce2f582233036da14c2614 (diff)
downloadrockbox-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/file.c')
-rw-r--r--firmware/common/file.c2
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 )