Restore the question value before call the CHANGED callback type.

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@15633 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Eric Dong 2014-07-07 05:56:26 +00:00 committed by ydong10
parent 0cecbe565a
commit 737adca337
1 changed files with 5 additions and 0 deletions

View File

@ -2262,6 +2262,11 @@ SendDiscardInfoToDriver (
continue;
}
//
// Restore the question value before call the CHANGED callback type.
//
GetQuestionValue (FormSet, Form, Question, GetSetValueWithEditBuffer);
if (Question->HiiValue.Type == EFI_IFR_TYPE_BUFFER) {
TypeValue = (EFI_IFR_TYPE_VALUE *) Question->BufferValue;
} else {