Commit 8841da66 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

msdmo: Assign to structs instead of using memcpy.

parent d52b9ddd
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment