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