-- Martin Fuchs martin-fuchs@gmx.net
Index: dlls/kernel/time.c =================================================================== RCS file: /home/wine/wine/dlls/kernel/time.c,v retrieving revision 1.30 diff -u -r1.30 time.c --- dlls/kernel/time.c 7 Jan 2003 20:36:29 -0000 1.30 +++ dlls/kernel/time.c 4 Feb 2003 20:27:05 -0000 @@ -350,7 +350,6 @@ * * RETURNS * - * Returns true when the local time was calculated. * Returns TRUE when the local time was calculated. * */ @@ -385,8 +384,8 @@ if (!_GetTimezoneBias(&tzinfo, lpUniversalTime, &lBias)) return FALSE; - bias = lBias * 600000000; /* 60 seconds per minute, 100000 [100-nanoseconds-ticks] per second */ - t += bias; + bias = (LONGLONG)lBias * 600000000; /* 60 seconds per minute, 100000 [100-nanoseconds-ticks] per second */ + t -= bias; ft.dwLowDateTime = (UINT)t; ft.dwHighDateTime = (UINT)(t >> 32); @@ -435,8 +434,8 @@ if (!_GetTimezoneBias(&tzinfo, lpUniversalTime, &lBias)) return FALSE; - bias = lBias * 600000000; /* 60 seconds per minute, 100000 [100-nanoseconds-ticks] per second */ - t -= bias; + bias = (LONGLONG)lBias * 600000000; /* 60 seconds per minute, 100000 [100-nanoseconds-ticks] per second */ + t += bias; ft.dwLowDateTime = (UINT)t; ft.dwHighDateTime = (UINT)(t >> 32);