src/joystick/win32/SDL_dxjoystick.c
branchgsoc2008_force_feedback
changeset 2576 034440120c38
parent 2198 fe19afb86473
child 2577 72b17d80b426
--- a/src/joystick/win32/SDL_dxjoystick.c	Thu Jul 31 17:11:36 2008 +0000
+++ b/src/joystick/win32/SDL_dxjoystick.c	Thu Jul 31 17:15:36 2008 +0000
@@ -178,7 +178,7 @@
 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++;
 
@@ -208,7 +208,7 @@
     LPDIRECTINPUTDEVICE device;
     DIPROPDWORD dipdw;
 
-    ZeroMemory(&dipdw, sizeof(DIPROPDWORD));
+    SDL_memset(&dipdw, 0, sizeof(DIPROPDWORD));
     dipdw.diph.dwSize = sizeof(DIPROPDWORD);
     dipdw.diph.dwHeaderSize = sizeof(DIPROPHEADER);
 
@@ -220,7 +220,7 @@
         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);