From 0538e9995d91cf98ea3f8b71187b6b57cb328e29 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Thu, 24 Jan 2013 15:30:53 +0100 Subject: [PATCH] itss: Use assignment instead of memcpy to copy a struct. --- dlls/itss/chm_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/itss/chm_lib.c b/dlls/itss/chm_lib.c index ada9be118a8..c9bbcdf971c 100644 --- a/dlls/itss/chm_lib.c +++ b/dlls/itss/chm_lib.c @@ -835,7 +835,7 @@ struct chmFile *chm_dup(struct chmFile *oldHandle) struct chmFile *newHandle=NULL; newHandle = HeapAlloc(GetProcessHeap(), 0, sizeof(struct chmFile)); - memcpy(newHandle, oldHandle, sizeof(struct chmFile)); + *newHandle = *oldHandle; /* duplicate fd handle */ DuplicateHandle(GetCurrentProcess(), oldHandle->fd,