diff options
author | xgu3 <xgu3@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-16 02:55:46 +0000 |
---|---|---|
committer | xgu3 <xgu3@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-16 02:55:46 +0000 |
commit | ad2baeff2209aa6161b90bf6f4e8454f1692f892 (patch) | |
tree | fa2d7653e6ff2b346707be50d977bf291fed6f3d /EdkUnixPkg/Dxe | |
parent | 582c7220f83e9e37778cd2ef5a34cd79d1494538 (diff) | |
download | edk2-ad2baeff2209aa6161b90bf6f4e8454f1692f892.tar.gz edk2-ad2baeff2209aa6161b90bf6f4e8454f1692f892.tar.bz2 edk2-ad2baeff2209aa6161b90bf6f4e8454f1692f892.zip |
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
Diffstat (limited to 'EdkUnixPkg/Dxe')
-rw-r--r-- | EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/BootMaint.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/BootMaint.c b/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/BootMaint.c index 9b84db59d0..69da6768e9 100644 --- a/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/BootMaint.c +++ b/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/BootMaint.c @@ -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;
|