- Do only allow to install reactos on disks which are visible by the bios.
[reactos.git] / reactos / subsys / system / usetup / usetup.c
index 9ee260c..e930201 100644 (file)
@@ -2545,7 +2545,7 @@ InstallDirectoryPage1(PWCHAR InstallDir, PDISKENTRY DiskEntry, PPARTENTRY PartEn
   RtlFreeUnicodeString(&DestinationArcPath);
   swprintf(PathBuffer,
           L"multi(0)disk(0)rdisk(%lu)partition(%lu)",
-          DiskEntry->DiskNumber,
+          DiskEntry->BiosDiskNumber,
           PartEntry->PartInfo[0].PartitionNumber);
   if (InstallDir[0] != L'\\')
     wcscat(PathBuffer,
@@ -3241,6 +3241,9 @@ RegistryPage(PINPUT_RECORD Ir)
        }
     }
 
+  /* Update the mounted devices list */
+  SetMountedDeviceValues(PartitionList);
+
   SetStatusText("   Done...");
 
   return BOOT_LOADER_PAGE;