diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-07-06 02:27:33 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-07-06 02:27:33 +0000 |
commit | 816a71105872156c572ced295de25774051cd700 (patch) | |
tree | 090b1e71fc1a7489639c228e9ea99620e34eaebd /MdeModulePkg/Universal/SetupBrowserDxe/InputHandler.c | |
parent | 6e7ba5e34a100b5bee76d07f6d6a56c71b7052b8 (diff) | |
download | edk2-platforms-816a71105872156c572ced295de25774051cd700.tar.xz |
When do discard action, enable callback action for questions which have value changed.
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13509 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/InputHandler.c')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/InputHandler.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/InputHandler.c b/MdeModulePkg/Universal/SetupBrowserDxe/InputHandler.c index dd022ce554..81190464cb 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/InputHandler.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/InputHandler.c @@ -799,9 +799,9 @@ EnterCarriageReturn: //
// Input value is not valid, restore Question Value
//
- GetQuestionValue (FormSet, Form, Question, TRUE);
+ GetQuestionValue (FormSet, Form, Question, GetSetValueWithEditBuffer);
} else {
- SetQuestionValue (FormSet, Form, Question, TRUE);
+ SetQuestionValue (FormSet, Form, Question, GetSetValueWithEditBuffer);
if (!DateOrTime || (Question->Storage != NULL)) {
//
// NV flag is unnecessary for RTC type of Date/Time
@@ -1351,9 +1351,9 @@ TheKey: //
// Input value is not valid, restore Question Value
//
- GetQuestionValue (Selection->FormSet, Selection->Form, Question, TRUE);
+ GetQuestionValue (Selection->FormSet, Selection->Form, Question, GetSetValueWithEditBuffer);
} else {
- SetQuestionValue (Selection->FormSet, Selection->Form, Question, TRUE);
+ SetQuestionValue (Selection->FormSet, Selection->Form, Question, GetSetValueWithEditBuffer);
UpdateStatusBar (Selection, NV_UPDATE_REQUIRED, Question->QuestionFlags, TRUE);
}
|