summaryrefslogtreecommitdiff
path: root/firmware/drivers/fat.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/fat.c')
-rw-r--r--firmware/drivers/fat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index ed93f66cc9..854b815237 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -2230,7 +2230,9 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry)
2230 &cached_buf[entrypos]) ) { 2230 &cached_buf[entrypos]) ) {
2231 2231
2232 /* don't return volume id entry */ 2232 /* don't return volume id entry */
2233 if ( entry->attr == FAT_ATTR_VOLUME_ID ) 2233 if ( (entry->attr &
2234 (FAT_ATTR_VOLUME_ID|FAT_ATTR_DIRECTORY))
2235 == FAT_ATTR_VOLUME_ID)
2234 continue; 2236 continue;
2235 2237
2236 /* replace shortname with longname? */ 2238 /* replace shortname with longname? */