mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-01 19:22:11 +00:00
Fixed warning C6011: Dereferencing NULL pointer 'display'.
This commit is contained in:
@@ -1508,7 +1508,7 @@ static int SDL_UpdateFullscreenMode(SDL_Window *window, SDL_bool fullscreen)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (i == _this->num_displays) {
|
||||
if (!display || i == _this->num_displays) {
|
||||
/* Already not fullscreen on any display */
|
||||
goto done;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user