Avoid crash on deleted windows.

This commit is contained in:
Alexandre Julliard 2001-04-25 19:53:28 +00:00
parent f6d5c6ce36
commit 46401a2a1c
1 changed files with 1 additions and 1 deletions

View File

@ -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;