mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
Restore question value for question without storage after CHANGING callback return error.
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@16592 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
5c7956a2a3
commit
c792e5b8a3
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Utility functions for UI presentation.
|
Utility functions for UI presentation.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -2048,8 +2048,15 @@ ProcessCallBackFunction (
|
|||||||
// According the spec, return fail from call back of "changing" and
|
// According the spec, return fail from call back of "changing" and
|
||||||
// "retrieve", should restore the question's value.
|
// "retrieve", should restore the question's value.
|
||||||
//
|
//
|
||||||
if ((Action == EFI_BROWSER_ACTION_CHANGING && Status != EFI_UNSUPPORTED) ||
|
if (Action == EFI_BROWSER_ACTION_CHANGING && Status != EFI_UNSUPPORTED) {
|
||||||
Action == EFI_BROWSER_ACTION_RETRIEVE) {
|
if (Statement->Storage != NULL) {
|
||||||
|
GetQuestionValue(FormSet, Form, Statement, GetSetValueWithEditBuffer);
|
||||||
|
} else if ((Statement->QuestionFlags & EFI_IFR_FLAG_CALLBACK) != 0) {
|
||||||
|
ProcessCallBackFunction (Selection, FormSet, Form, Question, EFI_BROWSER_ACTION_RETRIEVE, FALSE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Action == EFI_BROWSER_ACTION_RETRIEVE) {
|
||||||
GetQuestionValue(FormSet, Form, Statement, GetSetValueWithEditBuffer);
|
GetQuestionValue(FormSet, Form, Statement, GetSetValueWithEditBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user