mscms: Use assignment instead of memcpy to copy structs.

This commit is contained in:
Michael Stefaniuc 2013-01-24 15:18:09 +01:00 committed by Alexandre Julliard
parent a8b63acc03
commit 184f167b19
1 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ HPROFILE create_profile( struct profile *profile )
if ((handle = alloc_profile_handle())) if ((handle = alloc_profile_handle()))
{ {
DWORD_PTR index = (DWORD_PTR)handle - 1; DWORD_PTR index = (DWORD_PTR)handle - 1;
memcpy( &profiletable[index], profile, sizeof(struct profile) ); profiletable[index] = *profile;
} }
LeaveCriticalSection( &MSCMS_handle_cs ); LeaveCriticalSection( &MSCMS_handle_cs );
return handle; return handle;
@ -221,7 +221,7 @@ HTRANSFORM create_transform( struct transform *transform )
if ((handle = alloc_transform_handle())) if ((handle = alloc_transform_handle()))
{ {
DWORD_PTR index = (DWORD_PTR)handle - 1; DWORD_PTR index = (DWORD_PTR)handle - 1;
memcpy( &transformtable[index], transform, sizeof(struct transform) ); transformtable[index] = *transform;
} }
LeaveCriticalSection( &MSCMS_handle_cs ); LeaveCriticalSection( &MSCMS_handle_cs );
return handle; return handle;