summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 8d5057b..ee0c8ee 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)
else {
if ( parse_direntry(entry, &dir->cached_buf[i*32]) ) {
+ /* don't return volume id entry */
+ if ( entry->attr == FAT_ATTR_VOLUME_ID )
+ continue;
+
/* replace shortname with longname? */
if ( longs ) {
int j,k,l=0;
@@ -1115,3 +1119,9 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry)
}
return 0;
}
+
+/* -----------------------------------------------------------------
+ * local variables:
+ * eval: (load-file "../rockbox-mode.el")
+ * end:
+ */