Skip to content

Commit

Permalink
Merged PR 606: Null pointer fix in BootGraphicsLib and a debug print fix
Browse files Browse the repository at this point in the history
Null pointer fix in BootGraphicsLib and a debug print fix
  • Loading branch information
dmitryantipov committed Dec 19, 2018
1 parent 2e32bf2 commit 967e323
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MsCorePkg/Library/PlatformBootManagerLib/BdsPlatform.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ PlatformBootManagerAfterConsole (
//
// Boot Mode obtained in BeforeConsole action.
//
DEBUG((DEBUG_INFO,"BootMode -%x\n", mBootMode));
DEBUG((DEBUG_INFO,"BootMode 0x%x\n", mBootMode));

//
// Go the different platform policy with different boot mode
Expand Down
6 changes: 5 additions & 1 deletion MsGraphicsPkg/Library/BootGraphicsLib/BootGraphicsLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ DisplayBootGraphic(
//
// Erase Cursor from screen
//
gST->ConOut->EnableCursor (gST->ConOut, FALSE);
if (gST->ConOut != NULL) {
gST->ConOut->EnableCursor (gST->ConOut, FALSE);
} else {
DEBUG((DEBUG_WARN, "%a - ConOut is NULL, will not disable cursor\n", __FUNCTION__));
}

SizeOfX = GraphicsOutput->Mode->Info->HorizontalResolution;
SizeOfY = GraphicsOutput->Mode->Info->VerticalResolution;
Expand Down

0 comments on commit 967e323

Please sign in to comment.