msdmo: Assign to structs instead of using memcpy
Andrew Talbot
andrew.talbot at talbotville.com
Wed Mar 5 15:35:04 CST 2008
Changelog:
msdmo: Assign to structs instead of using memcpy.
diff --git a/dlls/msdmo/dmort.c b/dlls/msdmo/dmort.c
index 67d18aa..fe19100 100644
--- a/dlls/msdmo/dmort.c
+++ b/dlls/msdmo/dmort.c
@@ -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;
More information about the wine-patches
mailing list