mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
itss: Use assignment instead of memcpy to copy a struct.
This commit is contained in:
parent
ab270d433f
commit
0538e9995d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue