forked from Mirrors/wine-wine
qmgr: Assign to structs instead of using memcpy.
parent
0167d2c8a6
commit
40c7031d24
|
@ -159,7 +159,7 @@ static HRESULT WINAPI BITS_IBackgroundCopyJob_GetId(
|
||||||
GUID *pVal)
|
GUID *pVal)
|
||||||
{
|
{
|
||||||
BackgroundCopyJobImpl *This = (BackgroundCopyJobImpl *) iface;
|
BackgroundCopyJobImpl *This = (BackgroundCopyJobImpl *) iface;
|
||||||
memcpy(pVal, &This->jobId, sizeof *pVal);
|
*pVal = This->jobId;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -460,7 +460,7 @@ HRESULT BackgroundCopyJobConstructor(LPCWSTR displayName, BG_JOB_TYPE type,
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
memcpy(pJobId, &This->jobId, sizeof(GUID));
|
*pJobId = This->jobId;
|
||||||
|
|
||||||
list_init(&This->files);
|
list_init(&This->files);
|
||||||
This->jobProgress.BytesTotal = 0;
|
This->jobProgress.BytesTotal = 0;
|
||||||
|
|
Loading…
Reference in New Issue