Don't trust the returned date/time from the BIOS. QEmu messes this up sometimes.
Partly fixes bug 716.
Modified: trunk/reactos/boot/freeldr/freeldr/ui/tui.c

Modified: trunk/reactos/boot/freeldr/freeldr/ui/tui.c
--- trunk/reactos/boot/freeldr/freeldr/ui/tui.c	2005-09-09 15:58:40 UTC (rev 17766)
+++ trunk/reactos/boot/freeldr/freeldr/ui/tui.c	2005-09-09 21:15:32 UTC (rev 17767)
@@ -403,6 +403,12 @@
 	BOOL	PMHour = FALSE;
 
 	MachRTCGetCurrentDateTime(&Year, &Month, &Day, &Hour, &Minute, &Second);
+	if (Year < 1 || 9999 < Year || Month < 1 || 12 < Month || Day < 1 ||
+            31 < Day || 23 < Hour || 59 < Minute || 59 < Second)
+	{
+		/* This happens on QEmu sometimes. We just skip updating */
+		return;
+	}
 	// Get the month name
 	strcpy(DateString, UiMonthNames[Month - 1]);
 	// Get the day