Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Check return value, not unsigned "supported" flags

  • Loading branch information
slouken committed Dec 31, 2011
1 parent 60dfe27 commit 2f0e6426db9fe0ca7ba066d578a47aeb24af252d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/haptic/darwin/SDL_syshaptic.c
@@ -426,7 +426,7 @@ SDL_SYS_HapticOpenFromService(SDL_Haptic * haptic, io_service_t service)

/* Get supported features. */
ret2 = GetSupportedFeatures(haptic);
if (haptic->supported < 0) {
if (ret2 < 0) {
goto open_err;
}

0 comments on commit 2f0e642

Please sign in to comment.