Commit 08a11790 authored by Alexandre Julliard's avatar Alexandre Julliard

Made GetSystemTimeAsFileTime return value more precise.

parent 61ec6c1c
......@@ -166,8 +166,12 @@ BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION tzinfo)
/***********************************************************************
* GetSystemTimeAsFileTime (KERNEL32)
*/
VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME systemtimeAsfiletime) {
DOSFS_UnixTimeToFileTime(time(NULL),systemtimeAsfiletime,0);
VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME systemtimeAsfiletime)
{
struct timeval now;
gettimeofday( &now, 0 );
/* FIXME: convert to UTC */
DOSFS_UnixTimeToFileTime( now.tv_sec, systemtimeAsfiletime, now.tv_usec * 10 );
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment