diff options
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/InputHandler.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/InputHandler.c b/MdeModulePkg/Universal/SetupBrowserDxe/InputHandler.c index 5f857845aa..dd022ce554 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/InputHandler.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/InputHandler.c @@ -727,6 +727,16 @@ EnterCarriageReturn: 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
//
if (Question->Operand == EFI_IFR_DATE_OP) {
|