]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
Halfway reasonable implementation of wxFont for wxCocoa.
[wxWidgets.git] / src / common / datetime.cpp
index 087db34e896d60791daf945c9aa7df13c3c86435..d1ce06ab39e9f93001afe9ab23efeb098658db2d 100644 (file)
@@ -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;