Commit 184f167b authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

mscms: Use assignment instead of memcpy to copy structs.

parent a8b63acc
......@@ -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;
......
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