itss: Use assignment instead of memcpy to copy a struct.

Michael Stefaniuc mstefani at redhat.de
Thu Jan 24 08:30:53 CST 2013


---
 dlls/itss/chm_lib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/itss/chm_lib.c b/dlls/itss/chm_lib.c
index ada9be1..c9bbcdf 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,
-- 
1.7.7.6



More information about the wine-patches mailing list