summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Variable/RuntimeDxe
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Universal/Variable/RuntimeDxe')
-rw-r--r--MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c4
1 files changed, 2 insertions, 2 deletions
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.