//\r
// Get the current platform language setting\r
//\r
- GetEfiGlobalVariable2 (L"PlatformLang", &PlatformLanguage, NULL);\r
+ GetEfiGlobalVariable2 (L"PlatformLang", (VOID**)&PlatformLanguage, NULL);\r
\r
//\r
// Get the best matching language from SupportedLanguages\r
// device from the boot order variable\r
//\r
if (mEnumBootDevice) {\r
- GetVariable2 (LAST_ENUM_LANGUAGE_VARIABLE_NAME, &gLastEnumLangGuid, &LastLang, NULL);\r
- GetEfiGlobalVariable2 (L"PlatformLang", &PlatLang, NULL);\r
+ GetVariable2 (LAST_ENUM_LANGUAGE_VARIABLE_NAME, &gLastEnumLangGuid, (VOID**)&LastLang, NULL);\r
+ GetEfiGlobalVariable2 (L"PlatformLang", (VOID**)&PlatLang, NULL);\r
ASSERT (PlatLang != NULL);\r
if ((LastLang != NULL) && (AsciiStrCmp (LastLang, PlatLang) == 0)) {\r
Status = BdsLibBuildOptionFromVar (BdsBootOptionList, L"BootOrder");\r
CHAR8 *LanguageVariable;\r
CHAR8 *BestLanguage;\r
\r
- GetEfiGlobalVariable2 (Iso639Language ? L"Lang" : L"PlatformLang", &LanguageVariable, NULL);\r
+ GetEfiGlobalVariable2 (Iso639Language ? L"Lang" : L"PlatformLang", (VOID**)&LanguageVariable, NULL);\r
\r
BestLanguage = GetBestLanguage(\r
SupportedLanguages,\r
Index++;\r
}\r
\r
- GetEfiGlobalVariable2 (L"PlatformLangCodes", &PlatformSupportedLanguages, NULL);\r
+ GetEfiGlobalVariable2 (L"PlatformLangCodes", (VOID**)&PlatformSupportedLanguages, NULL);\r
if (PlatformSupportedLanguages == NULL) {\r
PlatformSupportedLanguages = AllocateCopyPool (\r
AsciiStrSize ((CHAR8 *) PcdGetPtr (PcdUefiVariableDefaultPlatformLangCodes)),\r
Lang = AllocatePool (AsciiStrSize (LanguageString));\r
ASSERT (Lang != NULL);\r
\r
- GetEfiGlobalVariable2 (L"PlatformLang", &CurrentLang, NULL);\r
+ GetEfiGlobalVariable2 (L"PlatformLang", (VOID**)&CurrentLang, NULL);\r
//\r
// Select the best language in LanguageString as the default one.\r
//\r
//\r
// Get the current platform language setting\r
//\r
- GetEfiGlobalVariable2 (L"PlatformLang", &PlatformLanguage, NULL);\r
+ GetEfiGlobalVariable2 (L"PlatformLang", (VOID**)&PlatformLanguage, NULL);\r
\r
//\r
// If Languag is NULL, then set it to an empty string, so it will be \r
//\r
// Get global variable and its size according to the name given.\r
//\r
- GetEfiGlobalVariable2 (VariableName, &Variable, NULL);\r
+ GetEfiGlobalVariable2 (VariableName, (VOID**)&Variable, NULL);\r
if (Variable == NULL) {\r
return FALSE;\r
}\r
//\r
// Get global variable and its size according to the name given.\r
//\r
- GetEfiGlobalVariable2 (VariableName, &Variable, NULL);\r
+ GetEfiGlobalVariable2 (VariableName, (VOID**)&Variable, NULL);\r
if (Variable == NULL) {\r
return;\r
}\r
//\r
// Get global variable and its size according to the name given.\r
//\r
- GetEfiGlobalVariable2 (VariableName, &Variable, NULL);\r
+ GetEfiGlobalVariable2 (VariableName, (VOID**)&Variable, NULL);\r
if (Variable == NULL) {\r
return ;\r
}\r
if (Language == NULL) {\r
Language = "";\r
}\r
- GetEfiGlobalVariable2 (L"PlatformLang", &CurrentLanguage, NULL);\r
+ GetEfiGlobalVariable2 (L"PlatformLang", (VOID**)&CurrentLanguage, NULL);\r
BestLanguage = GetBestLanguage (\r
SupportedLanguages,\r
FALSE,\r
{\r
NIC_IP4_CONFIG_INFO *NicConfig;\r
\r
- GetVariable2 (Instance->MacString, &gEfiNicIp4ConfigVariableGuid, &NicConfig, NULL);\r
+ GetVariable2 (Instance->MacString, &gEfiNicIp4ConfigVariableGuid, (VOID**)&NicConfig, NULL);\r
if (NicConfig != NULL) {\r
Ip4ConfigFixRouteTablePointer (&NicConfig->Ip4Info);\r
}\r
continue;\r
}\r
\r
- GetVariable2 (VariableName, &gEfiNicIp4ConfigVariableGuid, &NicConfig, NULL);\r
+ GetVariable2 (VariableName, &gEfiNicIp4ConfigVariableGuid, (VOID**)&NicConfig, NULL);\r
if (NicConfig == NULL) {\r
break;\r
}\r
//\r
// Find the best matching language.\r
//\r
- GetEfiGlobalVariable2 (VariableName, &Language, NULL);\r
+ GetEfiGlobalVariable2 (VariableName, (VOID**)&Language, NULL);\r
BestLanguage = GetBestLanguage (\r
ComponentName->SupportedLanguages,\r
(BOOLEAN) (ProtocolGuid == &gEfiComponentNameProtocolGuid),\r
// Attempt to get client Id from variable to keep it constant.\r
// See details in section-9 of rfc-3315.\r
//\r
- GetVariable2 (L"ClientId", &gEfiDhcp6ServiceBindingProtocolGuid, &Duid, NULL);\r
+ GetVariable2 (L"ClientId", &gEfiDhcp6ServiceBindingProtocolGuid, (VOID**)&Duid, NULL);\r
if (Duid != NULL) {\r
return Duid;\r
}\r
GetVariable2 (\r
mPrivate->PortString,\r
&gEfiIScsiInitiatorNameProtocolGuid,\r
- &AttemptConfigData,\r
+ (VOID**)&AttemptConfigData,\r
NULL\r
);\r
\r
return;\r
}\r
\r
- GetEfiGlobalVariable2 (L"PlatformLang", &CurrentLang, NULL);\r
+ GetEfiGlobalVariable2 (L"PlatformLang", (VOID**)&CurrentLang, NULL);\r
DefaultLang = (CHAR8 *) PcdGetPtr (PcdUefiVariableDefaultPlatformLang);\r
BestLanguage = GetBestLanguage (\r
Languages,\r
//\r
// Get the current platform language setting\r
//\r
- GetEfiGlobalVariable2 (L"PlatformLang", &PlatformLanguage, NULL);\r
+ GetEfiGlobalVariable2 (L"PlatformLang", (VOID**)&PlatformLanguage, NULL);\r
Status = ComponentName2->GetDriverName (\r
ComponentName2,\r
PlatformLanguage != NULL ? PlatformLanguage : "en-US",\r
// Try to find the DevicePath in BootOption\r
//\r
UnicodeSPrint (StrTemp, sizeof (StrTemp), L"Boot%04x", Index);\r
- GetEfiGlobalVariable2 (StrTemp, &OptionBuffer, NULL);\r
+ GetEfiGlobalVariable2 (StrTemp, (VOID**)&OptionBuffer, NULL);\r
if (OptionBuffer == NULL) {\r
continue;\r
}\r
//\r
// Get KEK database variable.\r
//\r
- GetEfiGlobalVariable2 (EFI_KEY_EXCHANGE_KEY_NAME, &KekList, NULL);\r
+ GetEfiGlobalVariable2 (EFI_KEY_EXCHANGE_KEY_NAME, (VOID**)&KekList, NULL);\r
if (KekList == NULL) {\r
return EFI_SECURITY_VIOLATION;\r
}\r
return EFI_ACCESS_DENIED;\r
}\r
\r
- GetVariable2 (EFI_SECURE_BOOT_ENABLE_NAME, &gEfiSecureBootEnableDisableGuid, &SecureBootEnable, NULL);\r
+ GetVariable2 (EFI_SECURE_BOOT_ENABLE_NAME, &gEfiSecureBootEnableDisableGuid, (VOID**)&SecureBootEnable, NULL);\r
//\r
// Skip verification if SecureBootEnable variable doesn't exist.\r
//\r
\r
FreePool (SecureBootEnable);\r
\r
- GetEfiGlobalVariable2 (EFI_SETUP_MODE_NAME, &SetupMode, NULL);\r
+ GetEfiGlobalVariable2 (EFI_SETUP_MODE_NAME, (VOID**)&SetupMode, NULL);\r
\r
//\r
// SetupMode doesn't exist means no AuthVar driver is dispatched,\r
// If this library is built-in, it means firmware has capability to perform\r
// driver signing verification.\r
//\r
- GetEfiGlobalVariable2 (EFI_SECURE_BOOT_MODE_NAME, &SecureBootModePtr, NULL);\r
+ GetEfiGlobalVariable2 (EFI_SECURE_BOOT_MODE_NAME, (VOID**)&SecureBootModePtr, NULL);\r
if (SecureBootModePtr == NULL) {\r
SecureBootMode = SECURE_BOOT_MODE_DISABLE;\r
//\r
// Get driver device path.\r
//\r
UnicodeSPrint (VarName, sizeof (VarName), L"Driver%04x", Order[Index]);\r
- GetEfiGlobalVariable2 (VarName, &Var, NULL);\r
+ GetEfiGlobalVariable2 (VarName, (VOID**)&Var, NULL);\r
if (Var == NULL) {\r
continue;\r
}\r
// Get loadable driver device path.\r
//\r
UnicodeSPrint (VarName, sizeof (VarName), L"Driver%04x", DriverIndex);\r
- GetEfiGlobalVariable2 (VarName, &Var, NULL);\r
+ GetEfiGlobalVariable2 (VarName, (VOID**)&Var, NULL);\r
if (Var == NULL) {\r
return;\r
}\r
//\r
// Get the SecureBootEnable Variable\r
//\r
- GetVariable2 (EFI_SECURE_BOOT_ENABLE_NAME, &gEfiSecureBootEnableDisableGuid, &SecureBootEnable, NULL);\r
+ GetVariable2 (EFI_SECURE_BOOT_ENABLE_NAME, &gEfiSecureBootEnableDisableGuid, (VOID**)&SecureBootEnable, NULL);\r
\r
//\r
// If the SecureBootEnable Variable doesn't exist, hide the SecureBoot Enable/Disable\r
//\r
// If there is no PK then the Delete Pk button will be gray.\r
//\r
- GetVariable2 (EFI_SETUP_MODE_NAME, &gEfiGlobalVariableGuid, &SetupMode, NULL);\r
+ GetVariable2 (EFI_SETUP_MODE_NAME, &gEfiGlobalVariableGuid, (VOID**)&SetupMode, NULL);\r
if (SetupMode == NULL || (*SetupMode) == 1) {\r
ConfigData->HasPk = FALSE;\r
} else {\r
//\r
// Get the SecureBootMode from CustomMode variable.\r
//\r
- GetVariable2 (EFI_CUSTOM_MODE_NAME, &gEfiCustomModeEnableGuid, &SecureBootMode, NULL);\r
+ GetVariable2 (EFI_CUSTOM_MODE_NAME, &gEfiCustomModeEnableGuid, (VOID**)&SecureBootMode, NULL);\r
if (SecureBootMode == NULL) {\r
ConfigData->SecureBootMode = STANDARD_SECURE_BOOT_MODE;\r
} else {\r
\r
switch (QuestionId) {\r
case KEY_SECURE_BOOT_ENABLE:\r
- GetVariable2 (EFI_SECURE_BOOT_ENABLE_NAME, &gEfiSecureBootEnableDisableGuid, &SecureBootEnable, NULL);\r
+ GetVariable2 (EFI_SECURE_BOOT_ENABLE_NAME, &gEfiSecureBootEnableDisableGuid, (VOID**)&SecureBootEnable, NULL);\r
if (NULL != SecureBootEnable) {\r
if (EFI_ERROR (SaveSecureBootVariable (Value->u8))) {\r
CreatePopUp (\r
break;\r
\r
case KEY_SECURE_BOOT_MODE:\r
- GetVariable2 (EFI_CUSTOM_MODE_NAME, &gEfiCustomModeEnableGuid, &SecureBootEnable, NULL);\r
+ GetVariable2 (EFI_CUSTOM_MODE_NAME, &gEfiCustomModeEnableGuid, (VOID**)&SecureBootEnable, NULL);\r
if (NULL != SecureBootEnable) {\r
Status = gRT->SetVariable ( \r
EFI_CUSTOM_MODE_NAME,\r
return;\r
}\r
\r
- GetEfiGlobalVariable2 (L"PlatformLang", &CurrentLang, NULL);\r
+ GetEfiGlobalVariable2 (L"PlatformLang", (VOID**)&CurrentLang, NULL);\r
DefaultLang = (CHAR8 *) PcdGetPtr (PcdUefiVariableDefaultPlatformLang);\r
BestLanguage = GetBestLanguage (\r
Languages,\r