mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 16:23:37 +00:00
itss: Use assignment instead of memcpy to copy a struct.
This commit is contained in:
parent
ab270d433f
commit
0538e9995d
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue