mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
66a31de7ee
commit
2e51b27fed
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue