mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-29 09:34:44 +00:00
If multiple threads are calling SDL_UpdateJoysticks(), then an overlapped read can be initiated on one thread (read_pending set to true) and GetOverlappedResult() called on another thread. This results in ERROR_OPERATION_ABORTED. This is harmless so we shouldn't return an error in this case, we'll just retry the read on the next call. Fixes https://github.com/libsdl-org/SDL/issues/14033