Fixed user input arrow down/ page down caused form display highlight menu error.
When scroll menu to the one not shows in current form, and this menu has option mismatch error, current display engine will not highlight this menu. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-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@16447 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1034,7 +1034,7 @@ ProcessOptions (
|
||||
// Exit current DisplayForm with new value.
|
||||
//
|
||||
gUserInput->SelectedStatement = Question;
|
||||
|
||||
gMisMatch = TRUE;
|
||||
ValueArray = AllocateZeroPool (Question->CurrentValue.BufferLen);
|
||||
ASSERT (ValueArray != NULL);
|
||||
gUserInput->InputValue.Buffer = ValueArray;
|
||||
@@ -1119,7 +1119,7 @@ ProcessOptions (
|
||||
// Exit current DisplayForm with new value.
|
||||
//
|
||||
gUserInput->SelectedStatement = Question;
|
||||
|
||||
gMisMatch = TRUE;
|
||||
ValueArray = AllocateCopyPool (Question->CurrentValue.BufferLen, Question->CurrentValue.Buffer);
|
||||
ASSERT (ValueArray != NULL);
|
||||
gUserInput->InputValue.Buffer = ValueArray;
|
||||
@@ -1196,7 +1196,7 @@ ProcessOptions (
|
||||
break;
|
||||
}
|
||||
gUserInput->SelectedStatement = Question;
|
||||
|
||||
gMisMatch = TRUE;
|
||||
FreePool (*OptionString);
|
||||
*OptionString = NULL;
|
||||
return EFI_NOT_FOUND;
|
||||
|
Reference in New Issue
Block a user