forked from xt-sys/exectos
Fix undefined behavior and NULL pointer in boot loader OS list renderer
This commit is contained in:
@@ -32,7 +32,12 @@ BlDisplayBootMenu()
|
||||
PWCHAR TimeOutString;
|
||||
|
||||
/* Initialize boot menu list */
|
||||
BlInitializeBootMenuList(MenuEntries, &NumberOfEntries, &HighligtedEntryId);
|
||||
Status = BlInitializeBootMenuList(&MenuEntries, &NumberOfEntries, &HighligtedEntryId);
|
||||
if(Status != STATUS_EFI_SUCCESS)
|
||||
{
|
||||
/* Failed to initialize boot menu list, exit into XTLDR shell */
|
||||
return;
|
||||
}
|
||||
|
||||
/* Get timeout from the configuration */
|
||||
TimeOutString = BlGetConfigValue(L"TIMEOUT");
|
||||
|
Reference in New Issue
Block a user