src/haptic/win32/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2592 8152dd46fbe2
parent 2591 07a19c1cc0a7
child 2593 e4729600607e
--- 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)