Commit 0538e999 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent ab270d43
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment