From 6e96e3015c67b4b26b8b6534bbbf6888b95c4e87 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 8 Mar 2010 21:04:00 +0000 Subject: [PATCH] - Fix a crash in user32 winetest msg. svn path=/trunk/; revision=46009 --- reactos/subsystems/win32/win32k/ntuser/painting.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/painting.c b/reactos/subsystems/win32/win32k/ntuser/painting.c index 86ed104c2e3..66977db106f 100644 --- a/reactos/subsystems/win32/win32k/ntuser/painting.c +++ b/reactos/subsystems/win32/win32k/ntuser/painting.c @@ -502,7 +502,10 @@ IntIsWindowDrawable(PWINDOW_OBJECT Window) for (WndObject = Window; WndObject != NULL; WndObject = WndObject->spwndParent) { Wnd = WndObject->Wnd; - if (!(Wnd->style & WS_VISIBLE) || + if ( Window->state & WINDOWSTATUS_DESTROYING || // state2 + Window->state & WINDOWSTATUS_DESTROYED || + !Wnd || + !(Wnd->style & WS_VISIBLE) || ((Wnd->style & WS_MINIMIZE) && (WndObject != Window))) { return FALSE;