mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Stored the return value in the location given by the parameter (in function time()).
svn path=/trunk/; revision=3568
This commit is contained in:
parent
db14727518
commit
9b17dd2a05
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in a new issue