Commit da0a48d2 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

dinput: Assign to structs instead of using memcpy.

parent 53e9e24a
...@@ -783,7 +783,7 @@ HRESULT linuxinput_create_effect( ...@@ -783,7 +783,7 @@ HRESULT linuxinput_create_effect(
newEffect->lpVtbl = &LinuxInputEffectVtbl; newEffect->lpVtbl = &LinuxInputEffectVtbl;
newEffect->ref = 1; newEffect->ref = 1;
memcpy(&(newEffect->guid), rguid, sizeof(*rguid)); newEffect->guid = *rguid;
newEffect->fd = fd; newEffect->fd = fd;
/* set the type. this cannot be changed over the effect's life. */ /* set the type. this cannot be changed over the effect's life. */
......
...@@ -180,7 +180,7 @@ static SysMouseImpl *alloc_device(REFGUID rguid, const void *mvt, IDirectInputIm ...@@ -180,7 +180,7 @@ static SysMouseImpl *alloc_device(REFGUID rguid, const void *mvt, IDirectInputIm
newDevice->base.lpVtbl = mvt; newDevice->base.lpVtbl = mvt;
newDevice->base.ref = 1; newDevice->base.ref = 1;
newDevice->base.dwCoopLevel = DISCL_NONEXCLUSIVE | DISCL_BACKGROUND; newDevice->base.dwCoopLevel = DISCL_NONEXCLUSIVE | DISCL_BACKGROUND;
memcpy(&newDevice->base.guid, rguid, sizeof(*rguid)); newDevice->base.guid = *rguid;
InitializeCriticalSection(&newDevice->base.crit); InitializeCriticalSection(&newDevice->base.crit);
newDevice->base.crit.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": SysMouseImpl*->base.crit"); newDevice->base.crit.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": SysMouseImpl*->base.crit");
newDevice->base.dinput = dinput; newDevice->base.dinput = dinput;
......
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