dinput: Assign to struct instead of using CopyMemory

Andrew Talbot andrew.talbot at talbotville.com
Fri Mar 28 17:52:23 CDT 2008


Changelog:
    dinput: Assign to struct instead of using CopyMemory.

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");
 



More information about the wine-patches mailing list