diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-02-23 03:21:04 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-02-23 03:21:04 +0000 |
commit | 3b2eba1814245e84f884d71f03f6c42561f1e591 (patch) | |
tree | b5b8769528bbde8696c99a947b086c1863f8c62b /MdeModulePkg | |
parent | 89cd8129f72bc2c445839efcddace560bfdfeb8f (diff) | |
download | edk2-3b2eba1814245e84f884d71f03f6c42561f1e591.tar.gz edk2-3b2eba1814245e84f884d71f03f6c42561f1e591.tar.bz2 edk2-3b2eba1814245e84f884d71f03f6c42561f1e591.zip |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/HiiDatabaseDxe/String.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/String.c b/MdeModulePkg/Universal/HiiDatabaseDxe/String.c index c568f19607..931e7b397b 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/String.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/String.c @@ -1967,9 +1967,8 @@ HiiCompareLanguage ( IN CHAR8 *Language2
)
{
- if (GetBestLanguage (Language1, FALSE, Language2, NULL) != NULL) {
- return TRUE;
- }
+ UINTN Language2Len;
- return FALSE;
+ Language2Len = AsciiStrLen (Language2);
+ return (BOOLEAN) (AsciiStrnCmp (Language1, Language2, Language2Len) == 0);
}
|