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

oldstable
Michael Stefaniuc 2013-01-24 15:30:53 +01:00 committed by Alexandre Julliard
parent ab270d433f
commit 0538e9995d
1 changed files with 1 additions and 1 deletions

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,