wine/ server/trace.c server/request.h server/p ...
Dimitrie O. Paun
dpaun at rogers.com
Sat Mar 27 09:55:23 CST 2004
On March 26, 2004 8:48 pm, Alexandre Julliard wrote:
> Use futimes() instead of utime() to implement SetFileTime, so that
> it can be done on the client side.
+ if (atime)
+ {
+ sec = ((ULONGLONG)atime->dwHighDateTime << 32) | atime->dwLowDateTime;
+ sec = RtlLargeIntegerDivide( sec, 10000000, &nsec );
+ tv[0].tv_sec = sec - SECS_1601_TO_1970;
+ tv[0].tv_usec = (UINT)nsec / 10;
+ }
+ if (mtime)
+ {
+ sec = ((ULONGLONG)mtime->dwHighDateTime << 32) | mtime->dwLowDateTime;
+ sec = RtlLargeIntegerDivide( sec, 10000000, &nsec );
+ tv[0].tv_sec = sec - SECS_1601_TO_1970;
+ tv[0].tv_usec = (UINT)nsec / 10;
+ }
^^^^^
Shouldn't these be tv[1]?
--
Dimi.
More information about the wine-devel
mailing list