mirror of https://github.com/acidanthera/audk.git
Fix the issues,
bootmaint Null Ptr Error git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2251 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
582c7220f8
commit
ad2baeff22
|
@ -449,6 +449,7 @@ Returns:
|
|||
Index2 = (UINT16) (KeyValue - HANDLE_OPTION_OFFSET);
|
||||
|
||||
NewMenuEntry = BOpt_GetMenuEntry (&DriverMenu, Index2);
|
||||
ASSERT (NewMenuEntry != NULL);
|
||||
Private->HandleContext = (BM_HANDLE_CONTEXT *) NewMenuEntry->VariableContext;
|
||||
|
||||
CleanUpPage (FORM_DRV_ADD_HANDLE_DESC_ID, Private);
|
||||
|
@ -556,6 +557,8 @@ Returns:
|
|||
case FORM_CON_COM_ID:
|
||||
NewMenuEntry = BOpt_GetMenuEntry (&TerminalMenu, Private->CurrentTerminal);
|
||||
|
||||
ASSERT (NewMenuEntry != NULL);
|
||||
|
||||
NewTerminalContext = (BM_TERMINAL_CONTEXT *) NewMenuEntry->VariableContext;
|
||||
|
||||
NewTerminalContext->BaudRateIndex = CurrentFakeNVMap->COMBaudRate;
|
||||
|
|
Loading…
Reference in New Issue