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]?