From 46401a2a1cfc8ad2b2748b15572b099b7dc48d3f Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 25 Apr 2001 19:53:28 +0000 Subject: [PATCH] Avoid crash on deleted windows. --- windows/x11drv/wnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/x11drv/wnd.c b/windows/x11drv/wnd.c index 9d0cb95c77e..48260d3b29f 100644 --- a/windows/x11drv/wnd.c +++ b/windows/x11drv/wnd.c @@ -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;