Module: wine Branch: master Commit: 05ea03c00b694b4684ba4137a203913df5cb6a8a URL: http://source.winehq.org/git/wine.git/?a=commit;h=05ea03c00b694b4684ba4137a2...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Fri Mar 28 22:52:23 2008 +0000
dinput: Assign to struct instead of using CopyMemory.
---
dlls/dinput/joystick_linux.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dinput/joystick_linux.c b/dlls/dinput/joystick_linux.c index f375978..a43f842 100644 --- a/dlls/dinput/joystick_linux.c +++ b/dlls/dinput/joystick_linux.c @@ -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");