UefiPayloadPkg: Clear screen on boot error

This commit is contained in:
Tim Crawford
2020-02-04 13:37:10 -07:00
parent 94e7cfc7e7
commit 552ca5cc88

View File

@ -299,7 +299,8 @@ PlatformBootManagerUnableToBoot (
// 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.
//
if (gST->ConIn != NULL) {
if (gST->ConOut != NULL && gST->ConIn != NULL) {
gST->ConOut->ClearScreen (gST->ConOut);
AsciiPrint (
"%a: No bootable option or device was found.\n"
"%a: Press any key to enter the Boot Manager Menu.\n",