Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit967e323

Browse files
committed
Merged PR 606: Null pointer fix in BootGraphicsLib and a debug print fix
Null pointer fix in BootGraphicsLib and a debug print fix
1 parent2e32bf2 commit967e323

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎MsCorePkg/Library/PlatformBootManagerLib/BdsPlatform.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ PlatformBootManagerAfterConsole (
382382
//
383383
// Boot Mode obtained in BeforeConsole action.
384384
//
385-
DEBUG((DEBUG_INFO,"BootMode-%x\n",mBootMode));
385+
DEBUG((DEBUG_INFO,"BootMode0x%x\n",mBootMode));
386386

387387
//
388388
// Go the different platform policy with different boot mode

‎MsGraphicsPkg/Library/BootGraphicsLib/BootGraphicsLib.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ DisplayBootGraphic(
100100
//
101101
// Erase Cursor from screen
102102
//
103-
gST->ConOut->EnableCursor (gST->ConOut, FALSE);
103+
if (gST->ConOut!=NULL) {
104+
gST->ConOut->EnableCursor (gST->ConOut, FALSE);
105+
}else {
106+
DEBUG((DEBUG_WARN,"%a - ConOut is NULL, will not disable cursor\n",__FUNCTION__));
107+
}
104108

105109
SizeOfX=GraphicsOutput->Mode->Info->HorizontalResolution;
106110
SizeOfY=GraphicsOutput->Mode->Info->VerticalResolution;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp