]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesFunction.c
Add new interface GetVariable2 and GetEfiGlobalVariable2 to return more info. Also...
[mirror_edk2.git] / UnixPkg / MiscSubClassPlatformDxe / MiscNumberOfInstallableLanguagesFunction.c
index 64addad4a9d47fcc394943211dda19ef714bfe81..600f2ee9ae662b47deddc30d2f848a3f99affea5 100644 (file)
@@ -2,7 +2,7 @@
   This driver parses the mSmbiosMiscDataTable structure and reports\r
   any generated data.\r
 \r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -45,7 +45,7 @@ CurrentLanguageMatch (
     return;\r
   }\r
 \r
-  CurrentLang  = GetEfiGlobalVariable (L"PlatformLang");\r
+  GetEfiGlobalVariable2 (L"PlatformLang", &CurrentLang, NULL);\r
   DefaultLang  = (CHAR8 *) PcdGetPtr (PcdUefiVariableDefaultPlatformLang);\r
   BestLanguage = GetBestLanguage (\r
                    Languages,\r