summaryrefslogtreecommitdiffstats
path: root/wince
diff options
context:
space:
mode:
authoruema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-30 23:05:39 +0000
committeruema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-30 23:05:39 +0000
commitdd0f792ad95771babc151afe990a4ab9d3bd141b (patch)
tree8beadd6b38b780b56e0ea73b2db6e2c60a039d93 /wince
parent0d59db04b54661e3b17785add4edc9f3101db512 (diff)
downloadruby-dd0f792ad95771babc151afe990a4ab9d3bd141b.tar.gz
ruby-dd0f792ad95771babc151afe990a4ab9d3bd141b.tar.xz
ruby-dd0f792ad95771babc151afe990a4ab9d3bd141b.zip
*wince/time_wce.c (time): add zero check.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'wince')
-rw-r--r--wince/time_wce.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wince/time_wce.c b/wince/time_wce.c
index 81afe5152..ed9b3386b 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 );