mscms: Use assignment instead of memcpy to copy structs.

Michael Stefaniuc mstefani at redhat.de
Thu Jan 24 08:18:09 CST 2013


---
 dlls/mscms/handle.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/mscms/handle.c b/dlls/mscms/handle.c
index 1fec810..2f9eaec 100644
--- a/dlls/mscms/handle.c
+++ b/dlls/mscms/handle.c
@@ -140,7 +140,7 @@ HPROFILE create_profile( struct profile *profile )
     if ((handle = alloc_profile_handle()))
     {
         DWORD_PTR index = (DWORD_PTR)handle - 1;
-        memcpy( &profiletable[index], profile, sizeof(struct profile) );
+        profiletable[index] = *profile;
     }
     LeaveCriticalSection( &MSCMS_handle_cs );
     return handle;
@@ -221,7 +221,7 @@ HTRANSFORM create_transform( struct transform *transform )
     if ((handle = alloc_transform_handle()))
     {
         DWORD_PTR index = (DWORD_PTR)handle - 1;
-        memcpy( &transformtable[index], transform, sizeof(struct transform) );
+        transformtable[index] = *transform;
     }
     LeaveCriticalSection( &MSCMS_handle_cs );
     return handle;
-- 
1.7.7.6



More information about the wine-patches mailing list