]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Application/UiApp/BootMaint/Variable.c
MdeModulePkg: Replace deprecated function.
[mirror_edk2.git] / MdeModulePkg / Application / UiApp / BootMaint / Variable.c
index c80fada8a274dbb4c99dd566ef00683be2d4058b..76dbd3a4a9463e01e556b94e6f3a14be0c242373 100644 (file)
@@ -317,9 +317,9 @@ Var_UpdateAllConsoleOption (
   EFI_DEVICE_PATH_PROTOCOL  *ErrDevicePath;\r
   EFI_STATUS                Status;\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
     ChangeVariableDevicePath (OutDevicePath);\r
     Status = gRT->SetVariable (\r
@@ -395,7 +395,7 @@ Var_UpdateConsoleOption (
   EFI_DEVICE_PATH_PROTOCOL  *TerminalDevicePath;\r
   UINTN                     Index;\r
 \r
-  ConDevicePath = GetEfiGlobalVariable (ConsoleName);\r
+  GetEfiGlobalVariable2 (ConsoleName, (VOID**)&ConDevicePath, NULL);\r
   if (ConDevicePath != NULL) {\r
     EfiLibDeleteVariable (ConsoleName, &gEfiGlobalVariableGuid);\r
     FreePool (ConDevicePath);\r