summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/BdsDxe/FrontPage.c
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-21 08:51:15 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-21 08:51:15 +0000
commitc27eb3586138b96a6ff187952ab835d093c8fcb1 (patch)
treedeebfde2d7bab4334d3d3804cc3a6f01a3b049ab /MdeModulePkg/Universal/BdsDxe/FrontPage.c
parentf8d18bada5af6d1f89cfc3cd50580d590a641e50 (diff)
downloadedk2-c27eb3586138b96a6ff187952ab835d093c8fcb1.zip
edk2-c27eb3586138b96a6ff187952ab835d093c8fcb1.tar.gz
edk2-c27eb3586138b96a6ff187952ab835d093c8fcb1.tar.bz2
HiiLibGetCurrentLanguage returns the current UEFI variable "PlatformLang" (if this variable does not exist, a default value is returned). This function is called by HiiDatabase itself. Now, HiiLibGetCurrentLanguage is in HiiLib. Because of this, we can't add location of Hii protoocol in the library constructor of HiiLib. This cause Hii Database driver never get loaded (circular dependency).
By moving HiiLibGetCurrentLanguage to UefiLib, library constructor (depex) can be added back to HiiLib to make sure the execution order is correct. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5939 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/BdsDxe/FrontPage.c')
-rw-r--r--MdeModulePkg/Universal/BdsDxe/FrontPage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/BdsDxe/FrontPage.c b/MdeModulePkg/Universal/BdsDxe/FrontPage.c
index 3eb4a53..570dcd8 100644
--- a/MdeModulePkg/Universal/BdsDxe/FrontPage.c
+++ b/MdeModulePkg/Universal/BdsDxe/FrontPage.c
@@ -332,7 +332,7 @@ InitializeFrontPage (
//
// Get current language setting
//
- HiiLibGetCurrentLanguage (CurrentLang);
+ GetCurrentLanguage (CurrentLang);
//
// Allocate space for creation of UpdateData Buffer