mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-12-06 12:43:35 +01:00
ControllerInterface/SDL: Fix SDL_RegisterEvents error handling. It returns 0 on error, not -1.
This commit is contained in:
1 parent
646e8912d1
commit
6071d649e7
1 file changed
+1
-1
@@ -204,7 +204,7 @@ InputBackend::InputBackend(ControllerInterface* controller_interface)
|
||||
}
|
||||
|
||||
const Uint32 custom_events_start = SDL_RegisterEvents(2);
|
||||
if (custom_events_start == static_cast<Uint32>(-1))
|
||||
if (custom_events_start == 0)
|
||||
{
|
||||
ERROR_LOG_FMT(CONTROLLERINTERFACE, "SDL failed to register custom events");
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user