mirror of
https://github.com/love2d/megasource.git
synced 2026-08-12 00:20:55 +02:00
SDL: Apply revision 40ea0350f044 to fix implicit memcpy() when compiling for Windows ARM64
https://hg.libsdl.org/SDL/rev/40ea0350f044 A better solution would be to update SDL to latest release, but this is unnecessary at the moment.
This commit is contained in:
@@ -478,8 +478,8 @@ EnumJoysticksCallback(const DIDEVICEINSTANCE * pdidInstance, VOID * pContext)
|
||||
pPrevJoystick->pNext = pNewJoystick->pNext;
|
||||
}
|
||||
|
||||
// Update with new guid/etc, if it has changed
|
||||
pNewJoystick->dxdevice = *pdidInstance;
|
||||
/* Update with new guid/etc, if it has changed */
|
||||
SDL_memcpy(&pNewJoystick->dxdevice, pdidInstance, sizeof(DIDEVICEINSTANCE));
|
||||
|
||||
pNewJoystick->pNext = SYS_Joystick;
|
||||
SYS_Joystick = pNewJoystick;
|
||||
|
||||
Reference in New Issue
Block a user