sdl2_frt/src
Sam Lantinga 50b1c19549 Fixed bug 5091 - Suspicious condition in HIDAPI_DriverXbox360_UpdateXInput
meyraud705

On line 220 of SDL_hidapi_xbox360.c https://hg.libsdl.org/SDL/file/4608f0e6e8e3/src/joystick/hidapi/SDL_hidapi_xbox360.c#l220

if (!XINPUTGETSTATE(user_index, &xinput_state[user_index].state) == ERROR_SUCCESS) {

logical not is only applied to the left hand side of this comparison.

I think you mean:
if (XINPUTGETSTATE(user_index, &xinput_state[user_index].state) != ERROR_SUCCESS) {
2020-04-14 09:55:33 -07:00
..
atomic Add basic support for compiling on RISC OS 2020-02-13 20:50:47 +00:00
audio Allow Bluetooth headphones for iOS playandrecord mode 2020-04-14 09:52:27 -07:00
core Revert "Fix incorrectly terminated MakeThreadHighPriority dbus message" 2020-04-08 08:42:09 -07:00
cpuinfo Improved CPU detection on ARM platforms 2020-02-04 16:46:22 +00:00
dynapi stdlib: Add SDL_trunc and SDL_truncf 2020-04-10 12:17:14 -04:00
events Added support for press/release hardware keyboard events in iOS 13.4 2020-04-08 19:16:31 -07:00
file Fixed compile warning 2020-02-10 13:59:05 -08:00
filesystem Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
haptic Fixed bug 3446 - The haptic API does not allow to select the direction axes 2020-03-17 14:18:05 -07:00
hidapi Removed blacklist entries for devices that aren't game controllers, allow Steam Controllers 2020-03-20 20:53:26 -07:00
joystick Fixed bug 5091 - Suspicious condition in HIDAPI_DriverXbox360_UpdateXInput 2020-04-14 09:55:33 -07:00
libm Fixed compiler warning 2020-01-29 20:09:16 -08:00
loadso Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
main Backed out changeset 51622f74dc85 2020-03-10 18:35:31 -07:00
power Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
render render: Fixed compiler warning about implicit cast. 2020-04-13 22:05:36 -04:00
sensor Fixed Windows accelerometer data units 2020-04-08 10:27:30 -07:00
stdlib Fixed implicit linkage to ftol2() on Windows 2020-04-13 13:24:56 -07:00
test Fix some format specifier warnings 2020-03-25 01:34:15 -04:00
thread Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
timer Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
video Fixed mouse button mapping on iOS 2020-04-13 23:07:54 -07:00
SDL_assert_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_assert.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_dataqueue.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_dataqueue.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_error_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_error.c Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
SDL_hints_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_hints.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_internal.h Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
SDL_log.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00