]> code.delx.au - refind/blobdiff - refind/lib.c
Version 0.2.6; adds more options for "volume" token in config file
[refind] / refind / lib.c
index 18ab99735b892ee361d45993c2541881cd34bc0f..e78ae6a341edfbfa2adaaffeb223e84a9e433e97 100644 (file)
@@ -579,7 +579,10 @@ static VOID ScanVolume(IN OUT REFIT_VOLUME *Volume)
     // open the root directory of the volume
     Volume->RootDir = LibOpenRoot(Volume->DeviceHandle);
     if (Volume->RootDir == NULL) {
+        Volume->IsReadable = FALSE;
         return;
+    } else {
+        Volume->IsReadable = TRUE;
     }
 
     // get volume name