Author: bfreisen
Date: Sun Sep 25 09:33:56 2016
New Revision: 72798
URL:
http://svn.reactos.org/svn/reactos?rev=72798&view=rev
Log:
[ATL] atltime.h: fix assertion: hours of a day are in the range 0-23, not 0-59
Modified:
trunk/reactos/sdk/lib/atl/atltime.h
Modified: trunk/reactos/sdk/lib/atl/atltime.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/atl/atltime.h?rev=…
==============================================================================
--- trunk/reactos/sdk/lib/atl/atltime.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/atl/atltime.h [iso-8859-1] Sun Sep 25 09:33:56 2016
@@ -35,7 +35,7 @@
CTimeSpan(LONG lDays, int nHours, int nMins, int nSecs) throw()
{
- ATLASSERT(lDays >= 0 && nHours >= 0 && nHours <= 59
&& nMins >= 0 && nMins <= 59 && nSecs >= 0 &&
nSecs <= 59);
+ ATLASSERT(lDays >= 0 && nHours >= 0 && nHours <= 23
&& nMins >= 0 && nMins <= 59 && nSecs >= 0 &&
nSecs <= 59);
m_nSpan = ((((LONGLONG)lDays) * 24 + nHours) * 60 + nMins) * 60 + nSecs;
}