mirror of
https://github.com/reactos/reactos.git
synced 2024-10-19 23:50:05 +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
|
@ -3350,8 +3350,17 @@ BootLoaderPage(PINPUT_RECORD Ir)
|
||||||
|
|
||||||
CONSOLE_SetStatusText(MUIGetString(STRING_PLEASEWAIT));
|
CONSOLE_SetStatusText(MUIGetString(STRING_PLEASEWAIT));
|
||||||
|
|
||||||
|
/* Find or set the active partition */
|
||||||
CheckActiveBootPartition(PartitionList);
|
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);
|
RtlFreeUnicodeString(&SystemRootPath);
|
||||||
swprintf(PathBuffer,
|
swprintf(PathBuffer,
|
||||||
L"\\Device\\Harddisk%lu\\Partition%lu",
|
L"\\Device\\Harddisk%lu\\Partition%lu",
|
||||||
|
|
Loading…
Reference in a new issue