1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

*wince/time_wce.c (time): add zero check.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
uema2 2003-09-30 23:05:39 +00:00
parent 77d7066abe
commit 3ea7376bca
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Wed Oct 01 08:02:52 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
*wince/time_wce.c (time): add zero check.
Tue Sep 30 11:29:23 2003 Tanaka Akira <akr@m17n.org> Tue Sep 30 11:29:23 2003 Tanaka Akira <akr@m17n.org>
* process.c (pst_inspect): describe stopped process "stopped". * process.c (pst_inspect): describe stopped process "stopped".

View file

@ -142,6 +142,8 @@ time_t time( time_t *timer )
SYSTEMTIME s; SYSTEMTIME s;
FILETIME f; FILETIME f;
if( timer==NULL ) return 0;
GetSystemTime( &s ); GetSystemTime( &s );
SystemTimeToFileTime( &s, &f ); SystemTimeToFileTime( &s, &f );