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
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