Fix an issue to match invalid Language codes like "enus"
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4691 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -135,7 +135,7 @@ IDEBusDriverDiagnosticsRunDiagnostics (
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user