diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-12 07:19:26 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-12 07:19:26 +0000 |
commit | cdcaf781f31a867f5f37e668889af34f0e5c3067 (patch) | |
tree | ae6fa6e42a6b656c0f2eccc75fe3fcabece90859 /EdkModulePkg/Library | |
parent | 406adcd15cafe2f1f6cff0750ef9bfd8c613013a (diff) | |
download | edk2-cdcaf781f31a867f5f37e668889af34f0e5c3067.zip edk2-cdcaf781f31a867f5f37e668889af34f0e5c3067.tar.gz edk2-cdcaf781f31a867f5f37e668889af34f0e5c3067.tar.bz2 |
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
Diffstat (limited to 'EdkModulePkg/Library')
-rw-r--r-- | EdkModulePkg/Library/EdkIfrSupportLib/IfrCommon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EdkModulePkg/Library/EdkIfrSupportLib/IfrCommon.c b/EdkModulePkg/Library/EdkIfrSupportLib/IfrCommon.c index f4d9d4f..cff559c 100644 --- a/EdkModulePkg/Library/EdkIfrSupportLib/IfrCommon.c +++ b/EdkModulePkg/Library/EdkIfrSupportLib/IfrCommon.c @@ -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
|