changeset 2576:034440120c38 gsoc2008_force_feedback

Converted some functions to SDL_mem*.
author Edgar Simo <bobbens@gmail.com>
date Thu, 31 Jul 2008 17:15:36 +0000
parents 57ea8810b5f0
children 72b17d80b426
files src/joystick/win32/SDL_dxjoystick.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);