mirror of https://github.com/acidanthera/audk.git
Source level security checked
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7316 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ba992f96fa
commit
79864f54ce
|
@ -593,6 +593,10 @@ PcRtcSetWakeupTime (
|
|||
// Just support set alarm time within 24 hours
|
||||
//
|
||||
PcRtcGetTime (&RtcTime, &Capabilities, Global);
|
||||
Status = RtcTimeFieldsValid (&RtcTime);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
if (!IsWithinOneDay (&RtcTime, Time)) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue