From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web10.2686.1615253494578042199 for ; Mon, 08 Mar 2021 17:31:35 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Tue, 09 Mar 2021 09:31:06 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: "'Chandramohan Akula'" , Cc: "'Michael D Kinney'" , "'Zhiguang Liu'" References: In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbUEFUQ0ggMS8xXSBNZGVQa2cvVWVmaUxpYjogQ29ycmVjdCB0aGUgYXJndW1lbnRzIHBhc3NlZCB0byBJc0xhbmd1YWdlU3VwcG9ydGVkKCk=?= Date: Tue, 9 Mar 2021 09:31:09 +0800 Message-ID: <000a01d71483$e21642e0$a642c8a0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKPgXYo6xiD5iMRlxy+pIjWcyrENgDR5N5PqQN1rmA= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Chandramohan Akula = > =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA3=D4=C28=C8=D5 11:03 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Chandramohan Akula ; > Michael D Kinney ; Liming Gao > ; Zhiguang Liu > =D6=F7=CC=E2: [PATCH 1/1] MdePkg/UefiLib: Correct the arguments passed = to > IsLanguageSupported() >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3211 >=20 > Correct the arguments passed to the IsLanguageSupported() function in > AddUnicodeString2() and LookupUnicodeString2() as expected by the = function >=20 > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > Signed-off-by: Chandramohan Akula > --- > MdePkg/Library/UefiLib/UefiLib.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > 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 +=3D 3; >=20 > } >=20 > } else { >=20 > - Found =3D !IsLanguageSupported(Language, SupportedLanguages); >=20 > + Found =3D !IsLanguageSupported(SupportedLanguages, Language); >=20 > } >=20 >=20 >=20 >=20 >=20 > @@ -1133,7 +1133,7 @@ AddUnicodeString2 ( > SupportedLanguages +=3D 3; >=20 > } >=20 > } else { >=20 > - Found =3D !IsLanguageSupported(Language, SupportedLanguages); >=20 > + Found =3D !IsLanguageSupported(SupportedLanguages, Language); >=20 > } >=20 > // >=20 > // If Language is not a member of SupportedLanguages, then return > EFI_UNSUPPORTED >=20 > -- > 2.27.0