Commit 46401a2a authored by Alexandre Julliard's avatar Alexandre Julliard

Avoid crash on deleted windows.

parent f6d5c6ce
......@@ -411,7 +411,7 @@ void X11DRV_WND_SetGravity( WND* wnd, int value )
{
X11DRV_WND_DATA *data = wnd->pDriverData;
if (data->window && data->bit_gravity != value )
if (data && data->window && data->bit_gravity != value )
{
XSetWindowAttributes win_attr;
win_attr.bit_gravity = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment