[SETUPLIB][BOOTDATA] Rename "MBRInstallType" to "BootLoaderLocation"

Less hardcoded references to "MBR" for code that should be generic
is always better.
This commit is contained in:
Hermès Bélusca-Maïto 2023-11-02 15:22:02 +01:00
parent 259abe59dc
commit c9c5fd1a18
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
5 changed files with 28 additions and 26 deletions

View file

@ -154,13 +154,13 @@ CheckUnattendedSetup(
IsUnattendedSetup = TRUE;
DPRINT("Running unattended setup\n");
/* Search for 'MBRInstallType' in the 'Unattend' section */
pSetupData->MBRInstallType = -1;
if (SpInfFindFirstLine(UnattendInf, L"Unattend", L"MBRInstallType", &Context))
/* Search for 'BootLoaderLocation' in the 'Unattend' section */
pSetupData->BootLoaderLocation = 2; // Default to "system partition"
if (SpInfFindFirstLine(UnattendInf, L"Unattend", L"BootLoaderLocation", &Context))
{
if (SpInfGetIntField(&Context, 1, &IntValue))
{
pSetupData->MBRInstallType = IntValue;
pSetupData->BootLoaderLocation = IntValue;
}
}