changeset 2592:8152dd46fbe2 gsoc2008_force_feedback

Changed effect comparison a bit.
author Edgar Simo <bobbens@gmail.com>
date Mon, 04 Aug 2008 17:30:17 +0000
parents 07a19c1cc0a7
children e4729600607e
files src/haptic/win32/SDL_syshaptic.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/haptic/win32/SDL_syshaptic.c	Mon Aug 04 17:16:11 2008 +0000
+++ b/src/haptic/win32/SDL_syshaptic.c	Mon Aug 04 17:30:17 2008 +0000
@@ -193,7 +193,7 @@
  * Callback to get all supported effects.
  */
 #define EFFECT_TEST(e,s)   \
-if (&pei->guid == &(e))      \
+if (SDL_memcmp(&pei->guid,&(e),sizeof(GUID)==0)      \
    haptic->supported |= (s)
 static BOOL CALLBACK
 DI_EffectCallback(LPCDIEFFECTINFO pei, LPVOID pv)