SDL/src/core/windows
ulatekh ec58a817ef Fixes made in response to running a static code analyzer under MS Windows.
Most of these are probably harmless, but the changes to SDL_immdevice.c and SDL_pixels.c appear to have fixed genuine bugs.

SDL_audiocvt.c: By separating the calculation of the divisor, I got rid of the suspicion that dividing a double by an integer led to loss of precision.
SDL_immdevice.c: Added a missing test, one that could have otherwise led to dereferencing a null pointer.
SDL_events.c, SDL_gamecontroller.c, SDL_joystick.c, SDL_malloc.c, SDL_video.c: Made it clear the return values weren't used.
SDL_hidapi_shield.c: The size is zero, so nothing bad would have happened, but the SDL_memset() was still being given an address outside of the array's range.
SDL_dinputjoystick.c: Initialize local data, just in case IDirectInputDevice8_GetProperty() isn't guaranteed to write to it.
SDL_render_sw.c: drawstate.viewport could be null (as seen on line 691).
SDL.c: SDL_MostSignificantBitIndex32() could return -1, though I don't know if you want to cope with that (what I did) or SDL_assert() that it can't happen.
SDL_hints.c: Replaced boolean tests on pointer values with comparisons to NULL.
SDL_pixels.c: Looks like the switch is genuinely missing a break!
SDL_rect_impl.h: The MacOS static checker pointed out issues with the X comparisons that were handled by assertions; I added assertions for the Y comparisons.
SDL_yuv.c, SDL_windowskeyboard.c, SDL_windowswindow.c: Checked error-result returns.
2022-11-16 12:43:20 -05:00
..
SDL_directx.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_hid.c joystick: get HID top-level collection preparsed data directly from RawInput API. 2022-04-26 09:48:35 -07:00
SDL_hid.h joystick: get HID top-level collection preparsed data directly from RawInput API. 2022-04-26 09:48:35 -07:00
SDL_immdevice.c Fixes made in response to running a static code analyzer under MS Windows. 2022-11-16 12:43:20 -05:00
SDL_immdevice.h Add SDL_GetDefaultAudioInfo. 2022-07-11 13:34:35 -04:00
SDL_windows.c Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
SDL_windows.h SDL_windows.h: guard WIN32_LEAN_AND_MEAN and STRICT macro defines. 2022-09-16 17:28:20 +03:00
SDL_xinput.c Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
SDL_xinput.h Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00