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