Reviewed-by: Jaben Carsey <[email protected]>

> -----Original Message-----
> From: edk2-devel [mailto:[email protected]] On Behalf Of
> Eric Dong
> Sent: Wednesday, August 26, 2015 7:40 PM
> To: [email protected]
> Cc: Ni, Ruiyu <[email protected]>
> Subject: [edk2] [Patch 3/3] ShellPkg: Replace use case of deprecated
> function GetVariable with GetVariable2.
> Importance: High
> 
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Eric Dong <[email protected]>
> Cc: Ruiyu Ni <[email protected]>
> ---
>  ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c
> b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c
> index bf41047..b6ce509 100644
> --- a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c
> +++ b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c
> @@ -1310,11 +1310,11 @@ GetBestLanguageForDriver (
>    )
>  {
>    CHAR8                         *LanguageVariable;
>    CHAR8                         *BestLanguage;
> 
> -  LanguageVariable = GetVariable (Iso639Language ? L"Lang" :
> L"PlatformLang", &gEfiGlobalVariableGuid);
> +  GetVariable2 (Iso639Language ? L"Lang" : L"PlatformLang",
> &gEfiGlobalVariableGuid, (VOID**)&LanguageVariable, NULL);
> 
>    BestLanguage = GetBestLanguage(
>                     SupportedLanguages,
>                     Iso639Language,
>                     (InputLanguage != NULL) ? InputLanguage : "",
> --
> 1.9.5.msysgit.1
> 
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to