1
0
Fork 0
forked from len0rd/rockbox

Fixed minor bug in previous change: 0 is a valid sector

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1969 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Hardeep Sidhu 2002-08-24 18:36:08 +00:00
parent f9e7ed4694
commit e60a999ca0

View file

@ -888,7 +888,7 @@ int fat_read( struct fat_file *file, int sectorcount, void* buf )
return 0;
/* find sequential sectors and read them all at once */
for (i=0; i<sectorcount && sector>0; i++ ) {
for (i=0; i<sectorcount && sector>=0; i++ ) {
numsec++;
if ( numsec >= fat_bpb.bpb_secperclus ) {
cluster = get_next_cluster(cluster);