From 2e51b27fed31eb7b2a2cb4245806c8c7859207f7 Mon Sep 17 00:00:00 2001 From: Chandramohan Akula Date: Mon, 8 Mar 2021 11:02:47 +0800 Subject: [PATCH] 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 Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Chandramohan Akula Reviewed-by: Liming Gao --- 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 835218f982..b6a33a0a48 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