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:
1 parent
07e4dea693
commit
3415bc920a
1 file changed
+1
-1
@@ -1311,7 +1311,7 @@ SDL_FullscreenResult WIN_SetWindowFullscreen(SDL_VideoDevice *_this, SDL_Window
|
||||
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
||||
SDL_DisplayData *displaydata = display->internal;
|
||||
SDL_WindowData *data = window->internal;
|
||||
HWND hwnd = data->hwnd;
|
||||
HWND hwnd = data ? data->hwnd : NULL;
|
||||
MONITORINFO minfo;
|
||||
DWORD style, styleEx;
|
||||
HWND top;
|
||||
|
||||
Reference in new issue
Block a user