Commit 32d7a9e6 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

msvcrt: Assign to structs instead of using memcpy.

parent 0d807913
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment