summaryrefslogtreecommitdiffstats
path: root/client/SDL/sdl_disp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/SDL/sdl_disp.cpp')
-rw-r--r--client/SDL/sdl_disp.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/SDL/sdl_disp.cpp b/client/SDL/sdl_disp.cpp
index ffd13c8..34863ba 100644
--- a/client/SDL/sdl_disp.cpp
+++ b/client/SDL/sdl_disp.cpp
@@ -142,6 +142,8 @@ static BOOL sdl_disp_check_context(void* context, SdlContext** ppsdl, sdlDispCon
return FALSE;
auto sdl = get_context(context);
+ if (!sdl)
+ return FALSE;
if (!sdl->context()->settings)
return FALSE;
@@ -200,6 +202,9 @@ Uint32 sdlDispContext::OnTimer(Uint32 interval, void* param)
return 0;
SdlContext* sdl = ctx->_sdl;
+ if (!sdl)
+ return 0;
+
sdlDispContext* sdlDisp = nullptr;
rdpSettings* settings = nullptr;