1
0
Fork 0
forked from len0rd/rockbox

Fixed name garbling bug

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1363 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-07-15 23:39:06 +00:00
parent cfc56d53a3
commit d1de4f8d38

View file

@ -992,9 +992,11 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry)
{ {
firstbyte = dir->cached_buf[i*32]; firstbyte = dir->cached_buf[i*32];
if(firstbyte == 0xe5) if(firstbyte == 0xe5) {
/* free entry */ /* free entry */
sectoridx = 0;
continue; continue;
}
if(firstbyte == 0) { if(firstbyte == 0) {
/* last entry */ /* last entry */
@ -1054,6 +1056,7 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry)
entry->name[l]=0; entry->name[l]=0;
} }
done = 1; done = 1;
sectoridx = 0;
break; break;
} }
} }