]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Replace use case of deprecated function GetVariable with GetVariable2.
authorEric Dong <eric.dong@intel.com>
Thu, 27 Aug 2015 04:45:23 +0000 (04:45 +0000)
committerydong10 <ydong10@Edk2>
Thu, 27 Aug 2015 04:45:23 +0000 (04:45 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18330 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c

index bf41047087324352b22031975c849889335464e8..b6ce509af3f2dd0cd0862daa3669a9ebeee4b11c 100644 (file)
@@ -1312,7 +1312,7 @@ GetBestLanguageForDriver (
   CHAR8                         *LanguageVariable;\r
   CHAR8                         *BestLanguage;\r
 \r
-  LanguageVariable = GetVariable (Iso639Language ? L"Lang" : L"PlatformLang", &gEfiGlobalVariableGuid);\r
+  GetVariable2 (Iso639Language ? L"Lang" : L"PlatformLang", &gEfiGlobalVariableGuid, (VOID**)&LanguageVariable, NULL);\r
 \r
   BestLanguage = GetBestLanguage(\r
                    SupportedLanguages,\r