From 9b17dd2a05657c03cac6c5074053b3fd71300d9b Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Wed, 25 Sep 2002 16:31:36 +0000 Subject: [PATCH] Stored the return value in the location given by the parameter (in function time()). svn path=/trunk/; revision=3568 --- reactos/lib/msvcrt/time/time.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/lib/msvcrt/time/time.c b/reactos/lib/msvcrt/time/time.c index 917ee9a60bb..6b0da0baca2 100644 --- a/reactos/lib/msvcrt/time/time.c +++ b/reactos/lib/msvcrt/time/time.c @@ -26,8 +26,12 @@ time(time_t *t) { FILETIME SystemTime; DWORD Remainder; + time_t tt; GetSystemTimeAsFileTime(&SystemTime); - return FileTimeToUnixTime( &SystemTime,&Remainder ); + tt = FileTimeToUnixTime( &SystemTime,&Remainder ); + if (t) + *t = tt; + return tt; } /***********************************************************************