Skip to content
Snippets Groups Projects
Commit f0b6b9a1 authored by Michael Cardenas's avatar Michael Cardenas Committed by Alexandre Julliard
Browse files

Cap window sizes at 65535.

parent 127ec92b
No related branches found
No related tags found
No related merge requests found
......@@ -871,6 +871,17 @@ BOOL X11DRV_CreateWindow( HWND hwnd, CREATESTRUCTA *cs, BOOL unicode )
RECT rect;
BOOL ret = FALSE;
if (cs->cx > 65535)
{
ERR( "invalid window width %d\n", cs->cx );
cs->cx = 65535;
}
if (cs->cy > 65535)
{
ERR( "invalid window height %d\n", cs->cx );
cs->cy = 65535;
}
if (!(data = HeapAlloc(GetProcessHeap(), 0, sizeof(*data)))) return FALSE;
data->whole_window = 0;
data->client_window = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment