summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Variable
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-04-28 03:32:24 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-04-28 03:32:24 +0000
commitbd397350b4346d1d7adc15742efb57ea7fba3dd9 (patch)
tree48ea7a3c0f3aef316012c78380652a439d37671f /MdeModulePkg/Universal/Variable
parent0c420e26a98fb084cf99bd4ff3baed1c66071ab0 (diff)
downloadedk2-platforms-bd397350b4346d1d7adc15742efb57ea7fba3dd9.tar.xz
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
Diffstat (limited to 'MdeModulePkg/Universal/Variable')
-rw-r--r--MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c4
-rw-r--r--MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c
index faacd218fd..9f372c1437 100644
--- a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c
+++ b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c
@@ -523,7 +523,7 @@ AutoUpdateLangVariable(
//
// 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.
@@ -553,7 +553,7 @@ AutoUpdateLangVariable(
//
// 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.
diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
index 611d1904ec..7e1f5da4bc 100644
--- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
+++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
@@ -1260,7 +1260,7 @@ AutoUpdateLangVariable(
//
// 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.
@@ -1290,7 +1290,7 @@ AutoUpdateLangVariable(
//
// 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.