Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Changed EFFECT_TEST again for win32.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Aug 5, 2008
1 parent 1e80779 commit ac70067
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/haptic/win32/SDL_syshaptic.c
Expand Up @@ -193,7 +193,10 @@ SDL_SYS_HapticName(int index)
* 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)
Expand Down

0 comments on commit ac70067

Please sign in to comment.