Commit 05ea03c0 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

dinput: Assign to struct instead of using CopyMemory.

parent 05935eb6
......@@ -423,7 +423,7 @@ static HRESULT alloc_device(REFGUID rguid, const void *jvt, IDirectInputImpl *di
newDevice->base.lpVtbl = jvt;
newDevice->base.ref = 1;
newDevice->base.dinput = dinput;
CopyMemory(&newDevice->base.guid, rguid, sizeof(*rguid));
newDevice->base.guid = *rguid;
InitializeCriticalSection(&newDevice->base.crit);
newDevice->base.crit.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": JoystickImpl*->base.crit");
......
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