summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2006-05-13 21:47:27 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2006-05-13 21:47:27 +0000
commit784b4c9a5b073a600f451d87b2026f832661530a (patch)
tree7435bbeac8b016a3b4615879f1a476ae5a3cc999 /firmware
parentd9b94b6a0cb675236e5dd61af991c45647862795 (diff)
downloadrockbox-784b4c9a5b073a600f451d87b2026f832661530a.tar.gz
rockbox-784b4c9a5b073a600f451d87b2026f832661530a.tar.bz2
rockbox-784b4c9a5b073a600f451d87b2026f832661530a.zip
Correctly test on volume id flag
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9925 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-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)
&cached_buf[entrypos]) ) {
/* don't return volume id entry */
- if ( entry->attr == FAT_ATTR_VOLUME_ID )
+ if ( (entry->attr &
+ (FAT_ATTR_VOLUME_ID|FAT_ATTR_DIRECTORY))
+ == FAT_ATTR_VOLUME_ID)
continue;
/* replace shortname with longname? */