UefiPayloadPkg: Clear screen on boot error

This commit is contained in:
Tim Crawford
2020-02-04 13:37:10 -07:00
parent 65bb2a9982
commit e458f432b6

View File

@@ -266,7 +266,8 @@ PlatformBootManagerUnableToBoot (
// AsciiPrint() will NULL-check gST->ConOut internally. We check gST->ConIn // AsciiPrint() will NULL-check gST->ConOut internally. We check gST->ConIn
// here to see if it makes sense to request and wait for a keypress. // here to see if it makes sense to request and wait for a keypress.
// //
if (gST->ConIn != NULL) { if (gST->ConOut != NULL && gST->ConIn != NULL) {
gST->ConOut->ClearScreen (gST->ConOut);
AsciiPrint ( AsciiPrint (
"%a: No bootable option or device was found.\n" "%a: No bootable option or device was found.\n"
"%a: Press any key to enter the Boot Manager Menu.\n", "%a: Press any key to enter the Boot Manager Menu.\n",