[edk2-devel] 回复: [PATCH 1/1] MdePkg/UefiLib: Correct the arguments passed to IsLanguageSupported()

gaoliming gaoliming at byosoft.com.cn
Tue Mar 9 01:31:09 UTC 2021


Reviewed-by: Liming Gao <gaoliming at byosoft.com.cn>

> -----邮件原件-----
> 发件人: Chandramohan Akula <chandramohan.akula at broadcom.com>
> 发送时间: 2021年3月8日 11:03
> 收件人: devel at edk2.groups.io
> 抄送: Chandramohan Akula <chandramohan.akula at broadcom.com>;
> Michael D Kinney <michael.d.kinney at intel.com>; Liming Gao
> <gaoliming at byosoft.com.cn>; Zhiguang Liu <zhiguang.liu at intel.com>
> 主题: [PATCH 1/1] MdePkg/UefiLib: Correct the arguments passed to
> IsLanguageSupported()
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3211
> 
> Correct the arguments passed to the IsLanguageSupported() function in
> AddUnicodeString2() and LookupUnicodeString2() as expected by the function
> 
> Cc: Michael D Kinney <michael.d.kinney at intel.com>
> Cc: Liming Gao <gaoliming at byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu at intel.com>
> Signed-off-by: Chandramohan Akula <chandramohan.akula at broadcom.com>
> ---
>  MdePkg/Library/UefiLib/UefiLib.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/MdePkg/Library/UefiLib/UefiLib.c
> b/MdePkg/Library/UefiLib/UefiLib.c
> index 835218f9824f..b6a33a0a488e 100644
> --- a/MdePkg/Library/UefiLib/UefiLib.c
> +++ b/MdePkg/Library/UefiLib/UefiLib.c
> @@ -839,7 +839,7 @@ LookupUnicodeString2 (
>        SupportedLanguages += 3;
> 
>      }
> 
>    } else {
> 
> -    Found = !IsLanguageSupported(Language, SupportedLanguages);
> 
> +    Found = !IsLanguageSupported(SupportedLanguages, Language);
> 
>    }
> 
> 
> 
> 
> 
> @@ -1133,7 +1133,7 @@ AddUnicodeString2 (
>        SupportedLanguages += 3;
> 
>      }
> 
>    } else {
> 
> -    Found = !IsLanguageSupported(Language, SupportedLanguages);
> 
> +    Found = !IsLanguageSupported(SupportedLanguages, Language);
> 
>    }
> 
>    //
> 
>    // If Language is not a member of SupportedLanguages, then return
> EFI_UNSUPPORTED
> 
> --
> 2.27.0





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#72553): https://edk2.groups.io/g/devel/message/72553
Mute This Topic: https://groups.io/mt/81191329/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list