mirror of https://github.com/FreeRDP/FreeRDP
[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:
parent
d1a159c483
commit
a45e464d6f
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue