msdmo: Assign to structs instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-03-05 21:35:04 +00:00 committed by Alexandre Julliard
parent d52b9ddd67
commit 8841da666f

View file

@ -168,9 +168,9 @@ HRESULT WINAPI MoCopyMediaType(DMO_MEDIA_TYPE* pdst,
if (!pdst || !psrc)
return E_POINTER;
memcpy(&pdst->majortype, &psrc->majortype, sizeof(psrc->majortype));
memcpy(&pdst->subtype, &psrc->subtype, sizeof(psrc->subtype));
memcpy(&pdst->formattype, &psrc->formattype, sizeof(psrc->formattype));
pdst->majortype = psrc->majortype;
pdst->subtype = psrc->subtype;
pdst->formattype = psrc->formattype;
pdst->bFixedSizeSamples = psrc->bFixedSizeSamples;
pdst->bTemporalCompression = psrc->bTemporalCompression;