Check return value, not unsigned "supported" flags
This commit is contained in:
parent
028e5dcdbd
commit
75ecf04ad9
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ SDL_SYS_HapticOpenFromService(SDL_Haptic * haptic, io_service_t service)
|
||||||
|
|
||||||
/* Get supported features. */
|
/* Get supported features. */
|
||||||
ret2 = GetSupportedFeatures(haptic);
|
ret2 = GetSupportedFeatures(haptic);
|
||||||
if (haptic->supported < 0) {
|
if (ret2 < 0) {
|
||||||
goto open_err;
|
goto open_err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue