Fix bug in variable driver about the incorrect usage for GetBestLanguage(), which expects the NULL to be the last var arg

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8195 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2009-04-28 03:32:24 +00:00
parent 0c420e26a9
commit bd397350b4
2 changed files with 4 additions and 4 deletions

View File

@ -523,7 +523,7 @@ AutoUpdateLangVariable(
// //
// When setting PlatformLang, firstly get most matched language string from supported language codes. // When setting PlatformLang, firstly get most matched language string from supported language codes.
// //
BestPlatformLang = GetBestLanguage(mVariableModuleGlobal->PlatformLangCodes, FALSE, Data); BestPlatformLang = GetBestLanguage(mVariableModuleGlobal->PlatformLangCodes, FALSE, Data, NULL);
// //
// Get the corresponding index in language codes. // Get the corresponding index in language codes.
@ -553,7 +553,7 @@ AutoUpdateLangVariable(
// //
// When setting Lang, firstly get most matched language string from supported language codes. // When setting Lang, firstly get most matched language string from supported language codes.
// //
BestLang = GetBestLanguage(mVariableModuleGlobal->LangCodes, TRUE, Data); BestLang = GetBestLanguage(mVariableModuleGlobal->LangCodes, TRUE, Data, NULL);
// //
// Get the corresponding index in language codes. // Get the corresponding index in language codes.

View File

@ -1260,7 +1260,7 @@ AutoUpdateLangVariable(
// //
// When setting PlatformLang, firstly get most matched language string from supported language codes. // When setting PlatformLang, firstly get most matched language string from supported language codes.
// //
BestPlatformLang = GetBestLanguage(mVariableModuleGlobal->PlatformLangCodes, FALSE, Data); BestPlatformLang = GetBestLanguage(mVariableModuleGlobal->PlatformLangCodes, FALSE, Data, NULL);
// //
// Get the corresponding index in language codes. // Get the corresponding index in language codes.
@ -1290,7 +1290,7 @@ AutoUpdateLangVariable(
// //
// When setting Lang, firstly get most matched language string from supported language codes. // When setting Lang, firstly get most matched language string from supported language codes.
// //
BestLang = GetBestLanguage(mVariableModuleGlobal->LangCodes, TRUE, Data); BestLang = GetBestLanguage(mVariableModuleGlobal->LangCodes, TRUE, Data, NULL);
// //
// Get the corresponding index in language codes. // Get the corresponding index in language codes.