Module: wine Branch: master Commit: 40c7031d2405bc650a10de0c3f753340ed8c529b URL: http://source.winehq.org/git/wine.git/?a=commit;h=40c7031d2405bc650a10de0c3f...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Sat Mar 8 15:37:09 2008 +0000
qmgr: Assign to structs instead of using memcpy.
---
dlls/qmgr/job.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/qmgr/job.c b/dlls/qmgr/job.c index 2a894ba..8768027 100644 --- a/dlls/qmgr/job.c +++ b/dlls/qmgr/job.c @@ -159,7 +159,7 @@ static HRESULT WINAPI BITS_IBackgroundCopyJob_GetId( GUID *pVal) { BackgroundCopyJobImpl *This = (BackgroundCopyJobImpl *) iface; - memcpy(pVal, &This->jobId, sizeof *pVal); + *pVal = This->jobId; return S_OK; }
@@ -460,7 +460,7 @@ HRESULT BackgroundCopyJobConstructor(LPCWSTR displayName, BG_JOB_TYPE type, HeapFree(GetProcessHeap(), 0, This); return hr; } - memcpy(pJobId, &This->jobId, sizeof(GUID)); + *pJobId = This->jobId;
list_init(&This->files); This->jobProgress.BytesTotal = 0;