mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 09:59:18 +01:00
fix volume label check
This commit is contained in:
parent
a8ed97403b
commit
7f77159f6a
@ -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];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user