mirror of https://github.com/acidanthera/audk.git
HiiCompareLanguage should use the exact match method, old code use the best match method.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11333 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
89cd8129f7
commit
3b2eba1814
|
@ -1967,9 +1967,8 @@ HiiCompareLanguage (
|
||||||
IN CHAR8 *Language2
|
IN CHAR8 *Language2
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (GetBestLanguage (Language1, FALSE, Language2, NULL) != NULL) {
|
UINTN Language2Len;
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return FALSE;
|
Language2Len = AsciiStrLen (Language2);
|
||||||
|
return (BOOLEAN) (AsciiStrnCmp (Language1, Language2, Language2Len) == 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue