Commit 2f4ae7ba authored by Gregg Mattinson's avatar Gregg Mattinson Committed by Alexandre Julliard

Avoid alignment problem in NtQuerySystemTime.

parent db31151b
......@@ -264,10 +264,11 @@ VOID WINAPI RtlTimeToElapsedTimeFields(
*/
void WINAPI NtQuerySystemTime( LARGE_INTEGER *time )
{
LONGLONG secs;
ULONGLONG secs;
struct timeval now;
gettimeofday( &now, 0 );
secs = now.tv_sec + SECS_1601_TO_1970;
time->QuadPart = RtlExtendedIntegerMultiply( secs, 10000000 ) + now.tv_usec * 10;
secs = RtlExtendedIntegerMultiply( now.tv_sec+SECS_1601_TO_1970, 10000000 ) + now.tv_usec * 10;
time->s.LowPart = (DWORD)secs;
time->s.HighPart = (DWORD)(secs >> 32);
}
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