#include <usetup.h>
+#include "bootsup.h"
+#include "chkdsk.h"
+#include "format.h"
+#include "drivesup.h"
+#include "settings.h"
+
#define NDEBUG
#include <debug.h>
static UNICODE_STRING DestinationArcPath;
static UNICODE_STRING DestinationRootPath;
+static WCHAR DestinationDriveLetter;
+
/* Path to the active partition (boot manager) */
static UNICODE_STRING SystemRootPath;
{
if (ConfirmQuit(Ir) == TRUE)
return QUIT_PAGE;
+ else
+ RedrawGenericList(LanguageList);
}
else if (Ir->Event.KeyEvent.uChar.AsciiChar == 0x0D) /* ENTER */
{
}
}
- return DISPLAY_SETTINGS_PAGE;
+ return KEYBOARD_SETTINGS_PAGE;
}
}
}
- return DISPLAY_SETTINGS_PAGE;
+ return LAYOUT_SETTINGS_PAGE;
}
/* FIXME: show an error dialog */
return QUIT_PAGE;
}
+ else if (IsListEmpty (&PartitionList->DiskListHead))
+ {
+ MUIDisplayError(ERROR_NO_HDD, Ir, POPUP_WAIT_ENTER);
+ return QUIT_PAGE;
+ }
}
DrawPartitionList(PartitionList);
TRUE);
}
+ DestinationDriveLetter = (WCHAR)PartitionList->CurrentPartition->DriveLetter[0];
+
return SELECT_FILE_SYSTEM_PAGE;
}
else if (Ir->Event.KeyEvent.wVirtualKeyCode == 'C') /* C */
return QUIT_PAGE;
}
+ /* Set the default pagefile entry */
+ SetDefaultPagefile(DestinationDriveLetter);
+
/* Update the mounted devices list */
SetMountedDeviceValues(PartitionList);