diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-03-14 10:25:29 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-03-14 10:25:29 +0000 |
commit | 640dfdc31da71ed374544d38208a62fdb38ccda0 (patch) | |
tree | 01c0d6bf7311c4b85d74a290b76bb005bdd111e3 /MdeModulePkg | |
parent | 4249fa760f55539ae3f6942dd9fdd25dcbb03357 (diff) | |
download | edk2-640dfdc31da71ed374544d38208a62fdb38ccda0.zip edk2-640dfdc31da71ed374544d38208a62fdb38ccda0.tar.gz edk2-640dfdc31da71ed374544d38208a62fdb38ccda0.tar.bz2 |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/HiiDatabaseDxe/String.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/String.c b/MdeModulePkg/Universal/HiiDatabaseDxe/String.c index d0d13f1..eeac9c2 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/String.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/String.c @@ -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);
}
|