Andrew Talbot : msdmo: Assign to structs instead of using memcpy.
Alexandre Julliard
julliard at winehq.org
Thu Mar 6 11:08:35 CST 2008
Module: wine
Branch: master
Commit: 8841da666fd392859b919906cc2b517485592d0c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8841da666fd392859b919906cc2b517485592d0c
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Wed Mar 5 21:35:04 2008 +0000
msdmo: Assign to structs instead of using memcpy.
---
dlls/msdmo/dmort.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
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-cvs
mailing list