]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg:Fix the issue FindQuestionFromProgress in SetupBrowserDxe is broken
authorDandan Bi <dandan.bi@intel.com>
Mon, 3 Aug 2015 09:44:04 +0000 (09:44 +0000)
committerdandanbi <dandanbi@Edk2>
Mon, 3 Aug 2015 09:44:04 +0000 (09:44 +0000)
If the storage of the question is EFI_HII_VARSTORE_BUFFER/EFI_HII_VARSTORE_EFI_VARIABLE_BUFFER,
in SetupBrowserDxe the configuration stings contain uppercase,but HiiDataBaseDxe generates the
ConfigResp string in lowercase,they mismatch,so FindQuestionFromProgress function is broken.
Now convert the configuration string in SetupBrowserDxe to lowercase to fix this issue.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18143 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
MdeModulePkg/Universal/SetupBrowserDxe/Setup.h

index 953e3a50717be2c936e8eaded027ec00670d2ac5..8e8607d4c0093c77589c9189d4542c1ac4a0c70c 100644 (file)
@@ -715,6 +715,7 @@ InitializeRequestElement (
                Question->VarStoreInfo.VarOffset,\r
                Question->StorageWidth\r
                );\r
+    HiiToLower(RequestElement);\r
     Question->BlockName = AllocateCopyPool ((StrLen + 1) * sizeof (CHAR16), RequestElement);\r
   } else {\r
     StrLen = UnicodeSPrint (RequestElement, 30 * sizeof (CHAR16), L"&%s", Question->VariableName);\r
index cfd81334d97bf74f8e3bbe24c0152d3730cca528..12381975355e5d3b6076d75a6fd386e3b9ff6842 100644 (file)
@@ -1849,4 +1849,17 @@ ReconnectController (
   IN EFI_HANDLE   DriverHandle\r
   );\r
 \r
+/**\r
+  Converts the unicode character of the string from uppercase to lowercase.\r
+  This is a internal function.\r
+\r
+  @param ConfigString  String to be converted\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+HiiToLower (\r
+  IN EFI_STRING  ConfigString\r
+  );\r
+\r
 #endif\r