Module: wine Branch: master Commit: 32d7a9e66877bb36c2a94bd2f5f8180329c7e74e URL: http://source.winehq.org/git/wine.git/?a=commit;h=32d7a9e66877bb36c2a94bd2f5...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Thu Mar 6 22:33:51 2008 +0000
msvcrt: Assign to structs instead of using memcpy.
---
dlls/msvcrt/file.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c index c2539c2..0c1e84b 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); }