]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkNt32Pkg/Dxe/PlatformBds/Generic/BootMaint/ConsoleOption.c
Fix the issues,
[mirror_edk2.git] / EdkNt32Pkg / Dxe / PlatformBds / Generic / BootMaint / ConsoleOption.c
index c77fa0a351eda1fe28981ffbbc278a49151f9e96..7a62765fcdb9670586ecb1d23b018b4d1de66297 100644 (file)
@@ -175,6 +175,7 @@ ChangeVariableDevicePath (
                       &TerminalMenu,\r
                       Com\r
                       );\r
+      ASSERT (NewMenuEntry != NULL);\r
       NewTerminalContext  = (BM_TERMINAL_CONTEXT *) NewMenuEntry->VariableContext;\r
       Uart                = (UART_DEVICE_PATH *) Node;\r
       CopyMem (\r