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:
ydong10 2011-02-23 03:21:04 +00:00
parent 89cd8129f7
commit 3b2eba1814
1 changed files with 3 additions and 4 deletions

View File

@ -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);
} }