diff --git a/ChangeLog b/ChangeLog index 532be5ab10..e3a8fb786a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Oct 01 08:02:52 2003 Takaaki Uematsu + + *wince/time_wce.c (time): add zero check. + Tue Sep 30 11:29:23 2003 Tanaka Akira * process.c (pst_inspect): describe stopped process "stopped". diff --git a/wince/time_wce.c b/wince/time_wce.c index 81afe5152f..ed9b3386bd 100644 --- a/wince/time_wce.c +++ b/wince/time_wce.c @@ -142,6 +142,8 @@ time_t time( time_t *timer ) SYSTEMTIME s; FILETIME f; + if( timer==NULL ) return 0; + GetSystemTime( &s ); SystemTimeToFileTime( &s, &f );