diff --git a/src/video/windows/SDL_windowswindow.c b/src/video/windows/SDL_windowswindow.c index 542a8dbf69..65185ec87c 100644 --- a/src/video/windows/SDL_windowswindow.c +++ b/src/video/windows/SDL_windowswindow.c @@ -206,6 +206,8 @@ static int WIN_AdjustWindowRectWithStyle(SDL_Window *window, DWORD style, DWORD default: /* Should never be here */ SDL_assert_release(SDL_FALSE); + *width = 0; + *height = 0; } /* Copy the client size in pixels into this rect structure,