]> code.delx.au - refind/blobdiff - refind/lib.c
Scans for drivers even if the volume name is NULL
[refind] / refind / lib.c
index f5037c5f65f7dd8d41709b24142118b98216d99f..81b71ade95d3a0e41a0c754c03065995f8d91085 100644 (file)
@@ -593,6 +593,9 @@ static VOID ScanVolume(IN OUT REFIT_VOLUME *Volume)
         FreePool(FileSystemInfoPtr);
     }
 
+    if (Volume->VolName == NULL) {
+       Volume->VolName = StrDuplicate(L"Unknown");
+    }
     // TODO: if no official volume name is found or it is empty, use something else, e.g.:
     //   - name from bytes 3 to 10 of the boot sector
     //   - partition number