mirror of https://github.com/acidanthera/audk.git
MdeModulePkg:Restore the HiiValue for string opcode
String opcode has HiiValue and BufferValue,BufferValue for string content, HiiValue for StringId.Function GetQuestionValue only update the BufferValue(string content),but the StringId and string content do not match,now fix this issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19750 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
f447734e4f
commit
cb312fb1f7
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
Entry and initialization module for the browser.
|
||||
|
||||
Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -2426,6 +2426,10 @@ SendDiscardInfoToDriver (
|
|||
//
|
||||
GetQuestionValue (FormSet, Form, Question, GetSetValueWithEditBuffer);
|
||||
|
||||
if (Question->Operand == EFI_IFR_STRING_OP){
|
||||
HiiSetString (FormSet->HiiHandle, Question->HiiValue.Value.string, (CHAR16*)Question->BufferValue, NULL);
|
||||
}
|
||||
|
||||
if (Question->HiiValue.Type == EFI_IFR_TYPE_BUFFER) {
|
||||
TypeValue = (EFI_IFR_TYPE_VALUE *) Question->BufferValue;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue