Author: cgutman Date: Thu Feb 2 19:57:13 2012 New Revision: 55382
URL: http://svn.reactos.org/svn/reactos?rev=55382&view=rev Log: [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)
Modified: branches/usb-bringup-trunk/base/setup/usetup/interface/usetup.c
Modified: branches/usb-bringup-trunk/base/setup/usetup/interface/usetup.c URL: http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/base/setup/use... ============================================================================== --- branches/usb-bringup-trunk/base/setup/usetup/interface/usetup.c [iso-8859-1] (original) +++ branches/usb-bringup-trunk/base/setup/usetup/interface/usetup.c [iso-8859-1] Thu Feb 2 19:57:13 2012 @@ -3350,7 +3350,16 @@
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,