Implement BlGetSecureBootStatus() and do some refactoring
This commit is contained in:
@@ -119,7 +119,7 @@ BlpLoadConfiguration()
|
||||
PCHAR ConfigData;
|
||||
|
||||
/* Initialize configuration pointer */
|
||||
RtlInitializeListHead(&BlpConfiguration);
|
||||
RtlInitializeListHead(&BlpConfigSections);
|
||||
|
||||
/* Read data from configuration file */
|
||||
Status = BlpReadConfigFile(L"\\EFI\\BOOT\\", L"XTLDR.INI", &ConfigData);
|
||||
@@ -131,7 +131,7 @@ BlpLoadConfiguration()
|
||||
}
|
||||
|
||||
/* Parse configuration data */
|
||||
Status = BlpParseConfigFile(ConfigData, &BlpConfiguration);
|
||||
Status = BlpParseConfigFile(ConfigData, &BlpConfigSections);
|
||||
if(Status != STATUS_EFI_SUCCESS)
|
||||
{
|
||||
/* Failed to parse configuration */
|
||||
@@ -140,8 +140,8 @@ BlpLoadConfiguration()
|
||||
}
|
||||
|
||||
/* Iterate through config sections */
|
||||
SectionListEntry = BlpConfiguration.Flink;
|
||||
while(SectionListEntry != &BlpConfiguration)
|
||||
SectionListEntry = BlpConfigSections.Flink;
|
||||
while(SectionListEntry != &BlpConfigSections)
|
||||
{
|
||||
/* Get config section */
|
||||
PXTBL_CONFIG_SECTION Section = CONTAIN_RECORD(SectionListEntry, XTBL_CONFIG_SECTION, Flink);
|
||||
@@ -162,7 +162,7 @@ BlpLoadConfiguration()
|
||||
}
|
||||
|
||||
/* Update boot menu OS list */
|
||||
BlpMenuList = &BlpConfiguration;
|
||||
BlpMenuList = &BlpConfigSections;
|
||||
|
||||
/* Return success */
|
||||
return STATUS_EFI_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user