# HG changeset patch # User Edgar Simo # Date 1217932777 0 # Node ID 3e59fe26671f4012b01716aeec1336c13396f850 # Parent e4729600607e1b3bebbf6c8f474fa67ca7ee5548 Changed EFFECT_TEST again for win32. diff -r e4729600607e -r 3e59fe26671f src/haptic/win32/SDL_syshaptic.c --- a/src/haptic/win32/SDL_syshaptic.c Mon Aug 04 17:31:09 2008 +0000 +++ b/src/haptic/win32/SDL_syshaptic.c Tue Aug 05 10:39:37 2008 +0000 @@ -193,7 +193,10 @@ * Callback to get all supported effects. */ #define EFFECT_TEST(e,s) \ -if (SDL_memcmp(&pei->guid,&(e),sizeof(GUID)==0)) \ +if ((pei->guid->Data1 == e.Data1) && \ + (pei->guid->Data2 == e.Data2) && \ + (pei->guid->Data3 == e.Data3) && \ + (SDL_strcmp(pei->guid->Data4,e.Data4)==0) \ haptic->supported |= (s) static BOOL CALLBACK DI_EffectCallback(LPCDIEFFECTINFO pei, LPVOID pv)