UefiPayloadPkg: Clear screen on boot error
This commit is contained in:
@ -299,7 +299,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",
|
||||||
|
Reference in New Issue
Block a user