# HG changeset patch # User Edgar Simo # Date 1217871017 0 # Node ID 8152dd46fbe2e9156edf05327389c8e814ba9992 # Parent 07a19c1cc0a72343bc6dc4bbb994787507e5d760 Changed effect comparison a bit. diff -r 07a19c1cc0a7 -r 8152dd46fbe2 src/haptic/win32/SDL_syshaptic.c --- 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)