Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Silent play - another fix
From: Mike Holden (rockbox_at_mikeholden.uklinux.net)
Date: 2003-04-08


Mike Holden said:
> In file.c, readwrite()
>
> If we successfully read headbytes, but fail in fat_readwrite(), we
> return nread as success, but we don't update file->fileoffset to reflect
> the data we've read from headbytes. We need to add file->fileoffset +=
> nread before each of the early return()s on fat_readwrite() failure.

Bad form, replying to my own post!

I suspect we also ought to be resetting file->cacheoffset to -1 as well?

-- 
Mike Holden



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa