mirror of
https://github.com/yawut/SDL.git
synced 2026-09-14 12:06:26 -05:00
Check return value, not unsigned "supported" flags
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user