mirror of https://github.com/acidanthera/audk.git
Roll back change to previous version. Language should be compared as the exact match.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11398 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4249fa760f
commit
640dfdc31d
|
@ -1973,18 +1973,5 @@ HiiCompareLanguage (
|
|||
// When languages are exactly same, they will be identical.
|
||||
//
|
||||
Language2Len = AsciiStrLen (Language2);
|
||||
if (AsciiStrnCmp (Language2, Language1, Language2Len) == 0) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
//
|
||||
// When Language1 is the sub tag of Language2, they will also be regarded as identical.
|
||||
// This is added to support current Shell. Shell string package uses "en" as language name.
|
||||
// But, it may use platform language "en-US" to get string value.
|
||||
//
|
||||
if (AsciiStrStr (Language2, Language1) == Language2) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return (BOOLEAN) (AsciiStrnCmp (Language1, Language2, Language2Len) == 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue