msvcrt: Assign to structs instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-03-06 22:33:51 +00:00 committed by Alexandre Julliard
parent 0d80791371
commit 32d7a9e668
1 changed files with 2 additions and 2 deletions

View File

@ -1220,13 +1220,13 @@ int CDECL _futime(int fd, struct MSVCRT__utimbuf *t)
MSVCRT_time_t currTime;
MSVCRT_time(&currTime);
RtlSecondsSince1970ToTime(currTime, (LARGE_INTEGER *)&at);
memcpy(&wt, &at, sizeof(wt));
wt = at;
}
else
{
RtlSecondsSince1970ToTime(t->actime, (LARGE_INTEGER *)&at);
if (t->actime == t->modtime)
memcpy(&wt, &at, sizeof(wt));
wt = at;
else
RtlSecondsSince1970ToTime(t->modtime, (LARGE_INTEGER *)&wt);
}