mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[USETUP]
- Write the partition table back after CheckActiveBootPartition() because it could've changed the partition table on a disk with no active partition - Fixes issues installing ROS on new disks and disks with no active partitions (including USB disks) svn path=/branches/usb-bringup-trunk/; revision=55382
This commit is contained in:
parent
59de50814d
commit
afe62bf2cf
1 changed files with 9 additions and 0 deletions
|
@ -3350,8 +3350,17 @@ BootLoaderPage(PINPUT_RECORD Ir)
|
|||
|
||||
CONSOLE_SetStatusText(MUIGetString(STRING_PLEASEWAIT));
|
||||
|
||||
/* Find or set the active partition */
|
||||
CheckActiveBootPartition(PartitionList);
|
||||
|
||||
/* Update the partition table because we may have changed the active partition */
|
||||
if (WritePartitionsToDisk(PartitionList) == FALSE)
|
||||
{
|
||||
DPRINT("WritePartitionsToDisk() failed\n");
|
||||
MUIDisplayError(ERROR_WRITE_PTABLE, Ir, POPUP_WAIT_ENTER);
|
||||
return QUIT_PAGE;
|
||||
}
|
||||
|
||||
RtlFreeUnicodeString(&SystemRootPath);
|
||||
swprintf(PathBuffer,
|
||||
L"\\Device\\Harddisk%lu\\Partition%lu",
|
||||
|
|
Loading…
Reference in a new issue