Fixed implicit memcpy() when building for ARM64 on Windows (thanks Seigo!)

Sam Lantinga 2020-10-27 09:00:42 -07:00
parent 010d5fba93
commit ddc0727bba
1 changed files with 2 additions and 2 deletions

View File

@ -601,8 +601,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;