summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/fat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index 8d5057bd89..ee0c8eef44 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -1010,6 +1010,10 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry)
1010 else { 1010 else {
1011 if ( parse_direntry(entry, &dir->cached_buf[i*32]) ) { 1011 if ( parse_direntry(entry, &dir->cached_buf[i*32]) ) {
1012 1012
1013 /* don't return volume id entry */
1014 if ( entry->attr == FAT_ATTR_VOLUME_ID )
1015 continue;
1016
1013 /* replace shortname with longname? */ 1017 /* replace shortname with longname? */
1014 if ( longs ) { 1018 if ( longs ) {
1015 int j,k,l=0; 1019 int j,k,l=0;
@@ -1115,3 +1119,9 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry)
1115 } 1119 }
1116 return 0; 1120 return 0;
1117} 1121}
1122
1123/* -----------------------------------------------------------------
1124 * local variables:
1125 * eval: (load-file "../rockbox-mode.el")
1126 * end:
1127 */