msvcrt: Assign to structs instead of using memcpy
Andrew Talbot
andrew.talbot at talbotville.com
Thu Mar 6 16:33:51 CST 2008
Changelog:
msvcrt: Assign to structs instead of using memcpy.
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);
}
More information about the wine-patches
mailing list