]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Nt32Pkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesFunction.c
Add new interface GetVariable2 and GetEfiGlobalVariable2 to return more info. Also...
[mirror_edk2.git] / Nt32Pkg / MiscSubClassPlatformDxe / MiscNumberOfInstallableLanguagesFunction.c
index 5be7444b31735cb890e5de8c25f94ac15c3243bd..1968d07ec27b81746bf4a3c5a4ad9431308ed405 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\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
@@ -43,7 +43,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