Files
SDL/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
..
2020-02-10 13:59:05 -08:00
2020-01-29 20:09:16 -08:00
2020-01-16 20:49:25 -08:00
2020-03-10 18:35:31 -07:00
2020-01-16 20:49:25 -08:00
2020-03-25 01:34:15 -04:00
2020-01-16 20:49:25 -08:00
2020-04-13 23:07:54 -07:00
2020-01-16 20:49:25 -08:00
2020-01-16 20:49:25 -08:00
2020-01-16 20:49:25 -08:00
2020-01-16 20:49:25 -08:00
2020-01-16 20:49:25 -08:00
2020-01-16 20:49:25 -08:00
2020-01-16 20:49:25 -08:00