qcap: Assign to struct instead of using CopyMemory.

This commit is contained in:
Andrew Talbot 2008-03-29 11:37:17 +00:00 committed by Alexandre Julliard
parent c2599478b6
commit 2a0f7007d8
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ HRESULT IEnumPinsImpl_Construct(const ENUMPINDETAILS * pDetails, IEnumPins ** pp
pEnumPins->lpVtbl = &IEnumPinsImpl_Vtbl;
pEnumPins->refCount = 1;
pEnumPins->uIndex = 0;
CopyMemory(&pEnumPins->enumPinDetails, pDetails, sizeof(ENUMPINDETAILS));
pEnumPins->enumPinDetails = *pDetails;
*ppEnum = (IEnumPins *)(&pEnumPins->lpVtbl);
ObjectRefCount(TRUE);
return S_OK;