mirror of https://github.com/acidanthera/audk.git
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:
parent
406adcd15c
commit
cdcaf781f3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue