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