mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 11:09:02 +00:00
msdmo: Assign to structs instead of using memcpy.
This commit is contained in:
parent
d52b9ddd67
commit
8841da666f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue