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



Rockbox mail archive

Subject: Silent play - another fix

Silent play - another fix

From: Mike Holden <rockbox_at_mikeholden.uklinux.net>
Date: Tue, 8 Apr 2003 12:21:15 +0100 (BST)

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.

-- 
Mike Holden
Received on 2003-04-08

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy