]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c
Add new interface GetVariable2 and GetEfiGlobalVariable2 to return more info. Also...
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / FrontPage.c
index 53dcf82ea91999bdd94a84ec4deec0ae94df0152..30e43e81c73ae9dcd5429acdc2fed36b743db432 100644 (file)
@@ -232,7 +232,7 @@ FrontPageCallback (
         Index++;\r
       }\r
 \r
-      PlatformSupportedLanguages = GetEfiGlobalVariable (L"PlatformLangCodes");\r
+      GetEfiGlobalVariable2 (L"PlatformLangCodes", &PlatformSupportedLanguages, NULL);\r
       if (PlatformSupportedLanguages == NULL) {\r
         PlatformSupportedLanguages = AllocateCopyPool (\r
                                        AsciiStrSize ((CHAR8 *) PcdGetPtr (PcdUefiVariableDefaultPlatformLangCodes)),\r
@@ -430,7 +430,7 @@ InitializeFrontPage (
   Lang = AllocatePool (AsciiStrSize (LanguageString));\r
   ASSERT (Lang != NULL);\r
 \r
-  CurrentLang = GetEfiGlobalVariable (L"PlatformLang");\r
+  GetEfiGlobalVariable2 (L"PlatformLang", &CurrentLang, NULL);\r
   //\r
   // Select the best language in LanguageString as the default one.\r
   //\r