MdeModulePkg:System hangs in setup menu
System hangs when RTC time rollover 1999 to 2000 Error processing of GetTime function: If get time fail,the date/time will display ??, and update help info to let user know get time fail. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17651 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1595,7 +1595,16 @@ GetQuestionValue (
|
||||
}
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
if (Question->Operand == EFI_IFR_DATE_OP){
|
||||
QuestionValue->date.Year = 0xff;
|
||||
QuestionValue->date.Month = 0xff;
|
||||
QuestionValue->date.Day = 0xff;
|
||||
} else {
|
||||
QuestionValue->time.Hour = 0xff;
|
||||
QuestionValue->time.Minute = 0xff;
|
||||
QuestionValue->time.Second = 0xff;
|
||||
}
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
if (Question->Operand == EFI_IFR_DATE_OP) {
|
||||
|
Reference in New Issue
Block a user