From 784b4c9a5b073a600f451d87b2026f832661530a Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Sat, 13 May 2006 21:47:27 +0000 Subject: Correctly test on volume id flag git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9925 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/fat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware/drivers/fat.c') 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? */ -- cgit v1.2.3