summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/UefiLib
diff options
context:
space:
mode:
authorChandramohan Akula <chandramohan.akula@broadcom.com>2021-03-08 11:02:47 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-03-17 01:42:43 +0000
commit2e51b27fed31eb7b2a2cb4245806c8c7859207f7 (patch)
treef3ad5183f2f7a963e1f41d93e905c2c084aeae1e /MdePkg/Library/UefiLib
parent66a31de7eeed62a7aa68fe0613a597a8bf08bc16 (diff)
downloadedk2-2e51b27fed31eb7b2a2cb4245806c8c7859207f7.tar.gz
edk2-2e51b27fed31eb7b2a2cb4245806c8c7859207f7.tar.bz2
edk2-2e51b27fed31eb7b2a2cb4245806c8c7859207f7.zip
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@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>
Diffstat (limited to 'MdePkg/Library/UefiLib')
-rw-r--r--MdePkg/Library/UefiLib/UefiLib.c4
1 files 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