From 32d7a9e66877bb36c2a94bd2f5f8180329c7e74e Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Thu, 6 Mar 2008 22:33:51 +0000 Subject: [PATCH] msvcrt: Assign to structs instead of using memcpy. --- dlls/msvcrt/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c index c2539c29107..0c1e84bc34d 100644 --- a/dlls/msvcrt/file.c +++ b/dlls/msvcrt/file.c @@ -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); }