mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
Add logic to validate new input value with minimum.
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@13308 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
fe92f438ac
commit
e6063a9595
@ -726,6 +726,16 @@ TheKey2:
|
|||||||
EnterCarriageReturn:
|
EnterCarriageReturn:
|
||||||
|
|
||||||
case CHAR_CARRIAGE_RETURN:
|
case CHAR_CARRIAGE_RETURN:
|
||||||
|
//
|
||||||
|
// Validate input value with Minimum value.
|
||||||
|
//
|
||||||
|
if (EditValue < Minimum) {
|
||||||
|
UpdateStatusBar (Selection, INPUT_ERROR, Question->QuestionFlags, TRUE);
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
|
UpdateStatusBar (Selection, INPUT_ERROR, Question->QuestionFlags, FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Store Edit value back to Question
|
// Store Edit value back to Question
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user