mirror of https://github.com/libsdl-org/SDL.git
Fixed crash if a window couldn't be created on Windows
Fixes https://github.com/libsdl-org/SDL/issues/11482
This commit is contained in:
parent
07e4dea693
commit
3415bc920a
|
|
@ -1311,7 +1311,7 @@ SDL_FullscreenResult WIN_SetWindowFullscreen(SDL_VideoDevice *_this, SDL_Window
|
||||||
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
||||||
SDL_DisplayData *displaydata = display->internal;
|
SDL_DisplayData *displaydata = display->internal;
|
||||||
SDL_WindowData *data = window->internal;
|
SDL_WindowData *data = window->internal;
|
||||||
HWND hwnd = data->hwnd;
|
HWND hwnd = data ? data->hwnd : NULL;
|
||||||
MONITORINFO minfo;
|
MONITORINFO minfo;
|
||||||
DWORD style, styleEx;
|
DWORD style, styleEx;
|
||||||
HWND top;
|
HWND top;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue