quartz: Assign to structs instead of using CopyMemory.

This commit is contained in:
Andrew Talbot 2008-03-29 11:37:20 +00:00 committed by Alexandre Julliard
parent 65dd1578e6
commit 892c31e4db
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,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);
TRACE("Created new enumerator (%p)\n", *ppEnum);

View File

@ -237,8 +237,8 @@ static HRESULT GetClassMediaFile(IAsyncReader * pReader, LPCOLESTR pszFileName,
TRACE("(%p, %s, %p, %p)\n", pReader, debugstr_w(pszFileName), majorType, minorType);
CopyMemory(majorType, &GUID_NULL, sizeof(*majorType));
CopyMemory(minorType, &GUID_NULL, sizeof(*minorType));
*majorType = GUID_NULL;
*minorType = GUID_NULL;
lRet = RegOpenKeyExW(HKEY_CLASSES_ROOT, wszMediaType, 0, KEY_READ, &hkeyMediaType);
hr = HRESULT_FROM_WIN32(lRet);