[client,SDL] check for timer initialized

before manipulating SDL timers check if the SDL subsystem was actually
initialized. Fixes #9736
This commit is contained in:
Armin Novak 2024-01-10 17:02:26 +01:00 committed by akallabeth
parent d1a159c483
commit a45e464d6f
1 changed files with 3 additions and 0 deletions

View File

@ -293,6 +293,9 @@ UINT sdlDispContext::sendLayout(const rdpMonitor* monitors, size_t nmonitors)
BOOL sdlDispContext::addTimer()
{
if (SDL_WasInit(SDL_INIT_TIMER) == 0)
return FALSE;
SDL_RemoveTimer(_timer);
WLog_Print(_sdl->log, WLOG_TRACE, "adding new display check timer");