From 7f77159f6a5329768f1c0520294f3f6e2a52c69f Mon Sep 17 00:00:00 2001 From: tantricity Date: Wed, 21 Oct 2009 22:06:27 +0000 Subject: [PATCH] fix volume label check --- source/directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/directory.c b/source/directory.c index 4edd7d9..0e7b5ed 100644 --- a/source/directory.c +++ b/source/directory.c @@ -449,7 +449,7 @@ bool _FAT_directory_getVolumeLabel (PARTITION* partition, char *label) { { //error reading return false; } - if ((entryData[DIR_ENTRY_attributes] == ATTRIB_VOL)) { + if (entryData[DIR_ENTRY_attributes] == ATTRIB_VOL && entryData[0] != DIR_ENTRY_FREE) { for (i = 0; i < 11; i++) { label[i] = entryData[DIR_ENTRY_name + i]; }