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

Commit

Permalink
Check return value, not unsigned "supported" flags
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 31, 2011
1 parent 60dfe27 commit 2f0e642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/haptic/darwin/SDL_syshaptic.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2f0e642

Please sign in to comment.