From 702dd052aef8e8da640cf1284ba15b3098b2a6f2 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Wed, 19 Jun 2002 17:31:35 +0000 Subject: Ignore volume ID git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1096 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/fat.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'firmware') 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) 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: + */ -- cgit v1.2.3