]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/UefiHiiLib/HiiString.c
Support get string from configuration string packages.
[mirror_edk2.git] / MdeModulePkg / Library / UefiHiiLib / HiiString.c
index bfca2062c214ac404fd07cb19c87af688af5598e..bfae3f8fc0948460704886730f3d4a58a7ae8cd3 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   HII Library implementation that uses DXE protocols and services.\r
 \r
-  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -106,6 +106,13 @@ HiiSetString (
     if (*Supported != 0) {\r
       *(Supported++) = '\0';\r
     }\r
+    \r
+    if ((SupportedLanguages == NULL) && AsciiStrnCmp (Language, UEFI_CONFIG_LANG, AsciiStrLen (UEFI_CONFIG_LANG)) == 0) {\r
+      //\r
+      // Skip string package used for keyword protocol.\r
+      //\r
+      continue;\r
+    }\r
 \r
     //\r
     // If StringId is 0, then call NewString().  Otherwise, call SetString()\r