MdeModulePkg: Replace deprecated function.

Replace GetEfiGlobalVariable with GetEfiGlobalVariable2.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18332 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Eric Dong
2015-08-27 04:52:24 +00:00
committed by ydong10
parent 44873d3056
commit cf34f86bc2
5 changed files with 17 additions and 17 deletions

View File

@@ -317,9 +317,9 @@ Var_UpdateAllConsoleOption (
EFI_DEVICE_PATH_PROTOCOL *ErrDevicePath;
EFI_STATUS Status;
OutDevicePath = GetEfiGlobalVariable (L"ConOut");
InpDevicePath = GetEfiGlobalVariable (L"ConIn");
ErrDevicePath = GetEfiGlobalVariable (L"ErrOut");
GetEfiGlobalVariable2 (L"ConOut", (VOID**)&OutDevicePath, NULL);
GetEfiGlobalVariable2 (L"ConIn", (VOID**)&InpDevicePath, NULL);
GetEfiGlobalVariable2 (L"ErrOut", (VOID**)&ErrDevicePath, NULL);
if (OutDevicePath != NULL) {
ChangeVariableDevicePath (OutDevicePath);
Status = gRT->SetVariable (
@@ -395,7 +395,7 @@ Var_UpdateConsoleOption (
EFI_DEVICE_PATH_PROTOCOL *TerminalDevicePath;
UINTN Index;
ConDevicePath = GetEfiGlobalVariable (ConsoleName);
GetEfiGlobalVariable2 (ConsoleName, (VOID**)&ConDevicePath, NULL);
if (ConDevicePath != NULL) {
EfiLibDeleteVariable (ConsoleName, &gEfiGlobalVariableGuid);
FreePool (ConDevicePath);