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:
parent
cfc56d53a3
commit
d1de4f8d38
1 changed files with 4 additions and 1 deletions
|
|
@ -992,9 +992,11 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry)
|
|||
{
|
||||
firstbyte = dir->cached_buf[i*32];
|
||||
|
||||
if(firstbyte == 0xe5)
|
||||
if(firstbyte == 0xe5) {
|
||||
/* free entry */
|
||||
sectoridx = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
if(firstbyte == 0) {
|
||||
/* last entry */
|
||||
|
|
@ -1054,6 +1056,7 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry)
|
|||
entry->name[l]=0;
|
||||
}
|
||||
done = 1;
|
||||
sectoridx = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue