|
|
Rockbox mail archiveSubject: Re: Nasty FAT bug killedFrom: Linus Nielsen Feltzing (linus_at_haxx.se) Date: 2003-03-05
Greg Haerr wrote:
The update_fat_entry() function attempted to set a FAT cache entry dirty
Old code:
fat_cache[sector % FAT_CACHE_MASK].dirty = true;
Corrected code:
fat_cache[(sector + bpb.bpb_rsvdseccnt) % FAT_CACHE_MASK].dirty = true;
The old code worked on systems with 32 reserved sectors since the modulo
/Linus
Page was last modified "Jan 10 2012" The Rockbox Crew |