]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/UefiLib: Correct the arguments passed to IsLanguageSupported()
authorChandramohan Akula <chandramohan.akula@broadcom.com>
Mon, 8 Mar 2021 03:02:47 +0000 (11:02 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 17 Mar 2021 01:42:43 +0000 (01:42 +0000)
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@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Signed-off-by: Chandramohan Akula <chandramohan.akula@broadcom.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
MdePkg/Library/UefiLib/UefiLib.c

index 835218f9824f94ce0ae936e29ed93c9592c20684..b6a33a0a488e562387996e076d4814a4f29f0cc3 100644 (file)
@@ -839,7 +839,7 @@ LookupUnicodeString2 (
       SupportedLanguages += 3;\r
     }\r
   } else {\r
-    Found = !IsLanguageSupported(Language, SupportedLanguages);\r
+    Found = !IsLanguageSupported(SupportedLanguages, Language);\r
   }\r
 \r
 \r
@@ -1133,7 +1133,7 @@ AddUnicodeString2 (
       SupportedLanguages += 3;\r
     }\r
   } else {\r
-    Found = !IsLanguageSupported(Language, SupportedLanguages);\r
+    Found = !IsLanguageSupported(SupportedLanguages, Language);\r
   }\r
   //\r
   // If Language is not a member of SupportedLanguages, then return EFI_UNSUPPORTED\r