NtQuerySystemTime alignment problem

Gregg Mattinson gm138242 at scot.canada.sun.com
Wed Jun 12 08:58:19 CDT 2002


This patch fixes an alignment problem in NtQuerySystemTime which occurs when 
called from RunningObjectTableImpl_Register.

Gregg Mattinson
Co-op Developer
Sun Microsystems of Canada

-------------- next part --------------
*** wine-20020605/dlls/ntdll/time.c	Wed Jun 12 09:47:37 2002
--- wine/dlls/ntdll/time.c	Wed Jun 12 09:44:14 2002
***************
*** 268,273 ****
--- 268,274 ----
      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->DUMMYSTRUCTNAME.LowPart  = (DWORD)secs;
+     time->DUMMYSTRUCTNAME.HighPart = (DWORD)(secs >> 32);
  }


More information about the wine-patches mailing list