mirror of
https://github.com/yawut/SDL.git
synced 2026-04-19 15:17:23 -05:00
WinRT: added an extra NULL pointer check for SDL_*ScreenSaver() backend code
This commit is contained in:
parent
e267302c16
commit
2de39f53fb
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user