From c9fb0982505291c6efab4abfc805fc907c575933 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Mon, 4 Nov 2002 14:59:46 +0000 Subject: 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 --- firmware/common/file.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/common') 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) } openfiles[fd].cacheoffset = sectoroffset; } + else + openfiles[fd].cacheoffset = -1; } else if ( openfiles[fd].cacheoffset != -1 ) -- cgit v1.2.3