diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-02-01 15:06:59 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-02-01 15:06:59 +0000 |
commit | 634aa59d20747ebbe5e230b80158fdc88b3bc485 (patch) | |
tree | 1063ae326e37ac0a73686c6729a9b930441508d1 /MdePkg | |
parent | 41c7f55141662cefa6d00fa6f0c5654705ea1c9e (diff) | |
download | edk2-platforms-634aa59d20747ebbe5e230b80158fdc88b3bc485.tar.xz |
Fix a bug in LookupUnicodeStringTable2() to mismatch invalid language code like "enus" with "en"
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4655 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Library/UefiLib/UefiLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/UefiLib/UefiLib.c b/MdePkg/Library/UefiLib/UefiLib.c index 12a717aa27..d7d7043a23 100644 --- a/MdePkg/Library/UefiLib/UefiLib.c +++ b/MdePkg/Library/UefiLib/UefiLib.c @@ -713,7 +713,7 @@ LookupUnicodeString2 ( SupportedLanguages += 3;
} else {
for (Index = 0; SupportedLanguages[Index] != 0 && SupportedLanguages[Index] != ';'; Index++);
- if (AsciiStrnCmp(SupportedLanguages, Language, Index) == 0) {
+ if ((AsciiStrnCmp(SupportedLanguages, Language, Index) == 0) && (Language[Index] == 0)) {
Found = TRUE;
break;
}
|