Fix a bug in GetLangFromSupportedLangCodes()

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11092 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
niruiyu 2010-11-25 07:16:31 +00:00
parent 5c0337668f
commit 462979afc2
1 changed files with 5 additions and 0 deletions

View File

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