Check return value, not unsigned "supported" flags
authorSam Lantinga <slouken@libsdl.org>
Sat, 31 Dec 2011 13:28:07 -0500
changeset 613906710207a491
parent 6138 4c64952a58fb
child 6140 67268d47c17b
Check return value, not unsigned "supported" flags
src/haptic/darwin/SDL_syshaptic.c
     1.1 --- a/src/haptic/darwin/SDL_syshaptic.c	Sat Dec 31 09:28:07 2011 -0500
     1.2 +++ b/src/haptic/darwin/SDL_syshaptic.c	Sat Dec 31 13:28:07 2011 -0500
     1.3 @@ -426,7 +426,7 @@
     1.4  
     1.5      /* Get supported features. */
     1.6      ret2 = GetSupportedFeatures(haptic);
     1.7 -    if (haptic->supported < 0) {
     1.8 +    if (ret2 < 0) {
     1.9          goto open_err;
    1.10      }
    1.11