Module: wine Branch: master Commit: 0538e9995d91cf98ea3f8b71187b6b57cb328e29 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0538e9995d91cf98ea3f8b7118...
Author: Michael Stefaniuc mstefani@redhat.de Date: Thu Jan 24 15:30:53 2013 +0100
itss: Use assignment instead of memcpy to copy a struct.
---
dlls/itss/chm_lib.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/itss/chm_lib.c b/dlls/itss/chm_lib.c index ada9be1..c9bbcdf 100644 --- a/dlls/itss/chm_lib.c +++ b/dlls/itss/chm_lib.c @@ -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,