]> git.proxmox.com Git - mirror_edk2.git/blobdiff - PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
PcAtChipsetPkg/RTC: Fix a bug in RtcGetWakeUpTime() which may cause its return value...
[mirror_edk2.git] / PcAtChipsetPkg / PcatRealTimeClockRuntimeDxe / PcRtc.c
index b999a2eafe5b92314399570c29e1e751d25e75f2..50e0e26030e7e0e35b5c60c131ac2ef18fd6155c 100644 (file)
@@ -514,6 +514,7 @@ PcRtcGetWakeupTime (
   //\r
   // Get the alarm info from variable\r
   //\r
+  DataSize = sizeof (EFI_TIME);\r
   Status = EfiGetVariable (\r
               L"RTCALARM",\r
               &gEfiCallerIdGuid,\r