qcap: Assign to struct instead of using CopyMemory
Andrew Talbot
andrew.talbot at talbotville.com
Sat Mar 29 06:37:17 CDT 2008
Changelog:
qcap: Assign to struct instead of using CopyMemory.
diff --git a/dlls/qcap/enumpins.c b/dlls/qcap/enumpins.c
index 8b06fe7..c57c043 100644
--- a/dlls/qcap/enumpins.c
+++ b/dlls/qcap/enumpins.c
@@ -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;
More information about the wine-patches
mailing list