Skip to content
Permalink
Browse files

WinRT: added an extra NULL pointer check for SDL_*ScreenSaver() backe…

…nd code
  • Loading branch information
DavidLudwig committed Aug 31, 2016
1 parent ebb0589 commit f5d43cf9128abbfecf8f6e0a0204ed40f4061498
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/winrt/SDL_winrtvideo.cpp
@@ -827,7 +827,7 @@ void
WINRT_SuspendScreenSaver(_THIS)
{
SDL_VideoData *driverdata = (SDL_VideoData *)_this->driverdata;
if (driverdata->displayRequest) {
if (driverdata && driverdata->displayRequest) {
ABI::Windows::System::Display::IDisplayRequest * displayRequest = (ABI::Windows::System::Display::IDisplayRequest *) driverdata->displayRequest;
if (_this->suspend_screensaver) {
displayRequest->RequestActive();

0 comments on commit f5d43cf

Please sign in to comment.