Stored the return value in the location given by the parameter (in function time()).

svn path=/trunk/; revision=3568
This commit is contained in:
Hartmut Birr 2002-09-25 16:31:36 +00:00
parent db14727518
commit 9b17dd2a05

View file

@ -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;
}
/***********************************************************************