X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/770882a69e30385237f89d467972775199e4f546..bab4b13d392e0c9663c2c5a09f0dcbc77344ec05:/src/common/datetime.cpp diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 087db34e89..d1ce06ab39 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -1607,6 +1607,7 @@ unsigned long wxDateTime::GetAsDOS() const time_t ticks = GetTicks(); struct tm tmstruct; struct tm *tm = wxLocaltime_r(&ticks, &tmstruct); + wxCHECK_MSG( tm, ULONG_MAX, _T("time can't be represented in DOS format") ); long year = tm->tm_year; year -= 80;