Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Converted some functions to SDL_mem*.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Jul 31, 2008
1 parent c49a3de commit 5e9bfff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/joystick/win32/SDL_dxjoystick.c
Expand Up @@ -178,7 +178,7 @@ SDL_SYS_JoystickInit(void)
static BOOL CALLBACK
EnumJoysticksCallback(const DIDEVICEINSTANCE * pdidInstance, VOID * pContext)
{
memcpy(&SYS_Joystick[SYS_NumJoysticks], pdidInstance,
SDL_memcpy(&SYS_Joystick[SYS_NumJoysticks], pdidInstance,
sizeof(DIDEVICEINSTANCE));
SYS_NumJoysticks++;

Expand Down Expand Up @@ -208,7 +208,7 @@ SDL_SYS_JoystickOpen(SDL_Joystick * joystick)
LPDIRECTINPUTDEVICE device;
DIPROPDWORD dipdw;

ZeroMemory(&dipdw, sizeof(DIPROPDWORD));
SDL_memset(&dipdw, 0, sizeof(DIPROPDWORD));
dipdw.diph.dwSize = sizeof(DIPROPDWORD);
dipdw.diph.dwHeaderSize = sizeof(DIPROPHEADER);

Expand All @@ -220,7 +220,7 @@ SDL_SYS_JoystickOpen(SDL_Joystick * joystick)
SDL_OutOfMemory();
return (-1);
}
ZeroMemory(joystick->hwdata, sizeof(struct joystick_hwdata));
SDL_memset(joystick->hwdata, 0, sizeof(struct joystick_hwdata));
joystick->hwdata->buffered = 1;
joystick->hwdata->Capabilities.dwSize = sizeof(DIDEVCAPS);

Expand Down

0 comments on commit 5e9bfff

Please sign in to comment.