]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Application/UiApp/BootMaint/ConsoleOption.c
MdeModulePkg: Replace deprecated function.
[mirror_edk2.git] / MdeModulePkg / Application / UiApp / BootMaint / ConsoleOption.c
index f4b0e66d8ce3670a71b97e728e596db7b0c8bec7..58ce8b7f3abe9ae321bb6fa407f386251461726c 100644 (file)
@@ -533,9 +533,9 @@ LocateSerialIo (
   //\r
   // Get L"ConOut", L"ConIn" and L"ErrOut" from the Var\r
   //\r
-  OutDevicePath = GetEfiGlobalVariable (L"ConOut");\r
-  InpDevicePath = GetEfiGlobalVariable (L"ConIn");\r
-  ErrDevicePath = GetEfiGlobalVariable (L"ErrOut");\r
+  GetEfiGlobalVariable2 (L"ConOut", (VOID**)&OutDevicePath, NULL);\r
+  GetEfiGlobalVariable2 (L"ConIn", (VOID**)&InpDevicePath, NULL);\r
+  GetEfiGlobalVariable2 (L"ErrOut", (VOID**)&ErrDevicePath, NULL);\r
   if (OutDevicePath != NULL) {\r
     UpdateComAttributeFromVariable (OutDevicePath);\r
   }\r
@@ -756,20 +756,20 @@ GetConsoleMenu (
   switch (ConsoleMenuType) {\r
   case BM_CONSOLE_IN_CONTEXT_SELECT:\r
     ConsoleMenu   = &ConsoleInpMenu;\r
-    DevicePath    = GetEfiGlobalVariable (L"ConIn");\r
-    AllDevicePath = GetEfiGlobalVariable (L"ConInDev");\r
+    GetEfiGlobalVariable2 (L"ConIn", (VOID**)&DevicePath, NULL);\r
+    GetEfiGlobalVariable2 (L"ConInDev", (VOID**)&AllDevicePath, NULL);\r
     break;\r
 \r
   case BM_CONSOLE_OUT_CONTEXT_SELECT:\r
     ConsoleMenu   = &ConsoleOutMenu;\r
-    DevicePath    = GetEfiGlobalVariable (L"ConOut");\r
-    AllDevicePath = GetEfiGlobalVariable (L"ConOutDev");\r
+    GetEfiGlobalVariable2 (L"ConOut", (VOID**)&DevicePath, NULL);\r
+    GetEfiGlobalVariable2 (L"ConOutDev", (VOID**)&AllDevicePath, NULL);\r
     break;\r
 \r
   case BM_CONSOLE_ERR_CONTEXT_SELECT:\r
     ConsoleMenu   = &ConsoleErrMenu;\r
-    DevicePath    = GetEfiGlobalVariable (L"ErrOut");\r
-    AllDevicePath = GetEfiGlobalVariable (L"ErrOutDev");\r
+    GetEfiGlobalVariable2 (L"ErrOut", (VOID**)&DevicePath, NULL);\r
+    GetEfiGlobalVariable2 (L"ErrOutDev", (VOID**)&AllDevicePath, NULL);\r
     break;\r
 \r
   default:\r