src/haptic/windows/SDL_syshaptic.c
changeset 6403 8d34c6248f4a
parent 6138 4c64952a58fb
child 6690 9548c8a58103
     1.1 --- a/src/haptic/windows/SDL_syshaptic.c	Fri Aug 24 10:03:05 2012 -0700
     1.2 +++ b/src/haptic/windows/SDL_syshaptic.c	Fri Aug 24 19:34:28 2012 -0400
     1.3 @@ -120,12 +120,7 @@
     1.4  static int
     1.5  DI_GUIDIsSame(const GUID * a, const GUID * b)
     1.6  {
     1.7 -    if (((a)->Data1 == (b)->Data1) &&
     1.8 -        ((a)->Data2 == (b)->Data2) &&
     1.9 -        ((a)->Data3 == (b)->Data3) &&
    1.10 -        (SDL_strcmp((a)->Data4, (b)->Data4) == 0))
    1.11 -        return 1;
    1.12 -    return 0;
    1.13 +    return (SDL_memcmp(a, b, sizeof (GUID)) == 0);
    1.14  }
    1.15  
    1.16