Fix a bug in GetLangFromSupportedLangCodes()

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11091 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
niruiyu 2010-11-25 07:04:04 +00:00
parent 963b62ee23
commit 5c0337668f
2 changed files with 10 additions and 0 deletions

View File

@ -523,6 +523,11 @@ GetLangFromSupportedLangCodes (
return CopyMem (mVariableModuleGlobal->PlatformLang, Supported - CompareLength, CompareLength); return CopyMem (mVariableModuleGlobal->PlatformLang, Supported - CompareLength, CompareLength);
} }
SubIndex++; SubIndex++;
//
// Skip ';' characters in Supported
//
for (; *Supported != '\0' && *Supported == ';'; Supported++);
} }
} }
} }

View File

@ -1199,6 +1199,11 @@ GetLangFromSupportedLangCodes (
return CopyMem (mVariableModuleGlobal->PlatformLang, Supported - CompareLength, CompareLength); return CopyMem (mVariableModuleGlobal->PlatformLang, Supported - CompareLength, CompareLength);
} }
SubIndex++; SubIndex++;
//
// Skip ';' characters in Supported
//
for (; *Supported != '\0' && *Supported == ';'; Supported++);
} }
} }
} }