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

This commit is contained in:
Michael Stefaniuc 2013-01-24 15:30:53 +01:00 committed by Alexandre Julliard
parent ab270d433f
commit 0538e9995d

View file

@ -835,7 +835,7 @@ struct chmFile *chm_dup(struct chmFile *oldHandle)
struct chmFile *newHandle=NULL; struct chmFile *newHandle=NULL;
newHandle = HeapAlloc(GetProcessHeap(), 0, sizeof(struct chmFile)); newHandle = HeapAlloc(GetProcessHeap(), 0, sizeof(struct chmFile));
memcpy(newHandle, oldHandle, sizeof(struct chmFile)); *newHandle = *oldHandle;
/* duplicate fd handle */ /* duplicate fd handle */
DuplicateHandle(GetCurrentProcess(), oldHandle->fd, DuplicateHandle(GetCurrentProcess(), oldHandle->fd,