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:
Miku AuahDark
2020-12-03 12:55:55 +08:00
parent 6e7f690ba1
commit 886724eb94
@@ -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;