Skip to content

Commit

Permalink
Fixed implicit memcpy() when building for ARM64 on Windows (thanks Se…
Browse files Browse the repository at this point in the history
…igo!)
  • Loading branch information
slouken committed Oct 27, 2020
1 parent 010d5fb commit ddc0727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/joystick/windows/SDL_dinputjoystick.c
Expand Up @@ -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;
Expand Down

0 comments on commit ddc0727

Please sign in to comment.