qcap: Assign to struct instead of using CopyMemory.
This commit is contained in:
parent
c2599478b6
commit
2a0f7007d8
|
@ -56,7 +56,7 @@ HRESULT IEnumPinsImpl_Construct(const ENUMPINDETAILS * pDetails, IEnumPins ** pp
|
||||||
pEnumPins->lpVtbl = &IEnumPinsImpl_Vtbl;
|
pEnumPins->lpVtbl = &IEnumPinsImpl_Vtbl;
|
||||||
pEnumPins->refCount = 1;
|
pEnumPins->refCount = 1;
|
||||||
pEnumPins->uIndex = 0;
|
pEnumPins->uIndex = 0;
|
||||||
CopyMemory(&pEnumPins->enumPinDetails, pDetails, sizeof(ENUMPINDETAILS));
|
pEnumPins->enumPinDetails = *pDetails;
|
||||||
*ppEnum = (IEnumPins *)(&pEnumPins->lpVtbl);
|
*ppEnum = (IEnumPins *)(&pEnumPins->lpVtbl);
|
||||||
ObjectRefCount(TRUE);
|
ObjectRefCount(TRUE);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
Loading…
Reference in New Issue