Commit 75ecf04a authored by Sam Lantinga's avatar Sam Lantinga

Check return value, not unsigned "supported" flags

parent 028e5dcd
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment