GetCurrentLanguage() in IFR Support Library treats language variable incorrectly. It attempted to search for '\0' flag, but the variable does not have this flag. It is a string with constant width of 3 characters.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2086 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24 2006-12-12 07:19:26 +00:00
parent 406adcd15c
commit cdcaf781f3
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ Returns:
AsciiStrCpy (Language, "eng");
}
for (Index = 0; Language[Index] != 0; Index++) {
for (Index = 0; Index < 3; Index++) {
//
// Bitwise AND ascii value with 0xDF yields an uppercase value.
// Sign extend into a unicode value