fix volume label check

This commit is contained in:
tantricity 2009-10-21 22:06:27 +00:00
parent a8ed97403b
commit 7f77159f6a

View File

@ -449,7 +449,7 @@ bool _FAT_directory_getVolumeLabel (PARTITION* partition, char *label) {
{ //error reading { //error reading
return false; 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++) { for (i = 0; i < 11; i++) {
label[i] = entryData[DIR_ENTRY_name + i]; label[i] = entryData[DIR_ENTRY_name + i];
} }