mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 07:52:57 -05:00
Check return value, not unsigned "supported" flags
This commit is contained in:
parent
e256711bb9
commit
1942221a6f
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user