mirror of https://github.com/acidanthera/audk.git
MdeModulePkg:Fix the issue FindQuestionFromProgress in SetupBrowserDxe is broken
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
This commit is contained in:
parent
c4a59af8c1
commit
a0973dcb77
|
@ -715,6 +715,7 @@ InitializeRequestElement (
|
||||||
Question->VarStoreInfo.VarOffset,
|
Question->VarStoreInfo.VarOffset,
|
||||||
Question->StorageWidth
|
Question->StorageWidth
|
||||||
);
|
);
|
||||||
|
HiiToLower(RequestElement);
|
||||||
Question->BlockName = AllocateCopyPool ((StrLen + 1) * sizeof (CHAR16), RequestElement);
|
Question->BlockName = AllocateCopyPool ((StrLen + 1) * sizeof (CHAR16), RequestElement);
|
||||||
} else {
|
} else {
|
||||||
StrLen = UnicodeSPrint (RequestElement, 30 * sizeof (CHAR16), L"&%s", Question->VariableName);
|
StrLen = UnicodeSPrint (RequestElement, 30 * sizeof (CHAR16), L"&%s", Question->VariableName);
|
||||||
|
|
|
@ -1849,4 +1849,17 @@ ReconnectController (
|
||||||
IN EFI_HANDLE DriverHandle
|
IN EFI_HANDLE DriverHandle
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Converts the unicode character of the string from uppercase to lowercase.
|
||||||
|
This is a internal function.
|
||||||
|
|
||||||
|
@param ConfigString String to be converted
|
||||||
|
|
||||||
|
**/
|
||||||
|
VOID
|
||||||
|
EFIAPI
|
||||||
|
HiiToLower (
|
||||||
|
IN EFI_STRING ConfigString
|
||||||
|
);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue