[ros-diffs] [jimtabor] 46009: - Fix a crash in user32 winetest msg.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Mon Mar 8 22:04:00 CET 2010


Author: jimtabor
Date: Mon Mar  8 22:04:00 2010
New Revision: 46009

URL: http://svn.reactos.org/svn/reactos?rev=46009&view=rev
Log:
- Fix a crash in user32 winetest msg.

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/painting.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/painting.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/painting.c?rev=46009&r1=46008&r2=46009&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/painting.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/painting.c [iso-8859-1] Mon Mar  8 22:04:00 2010
@@ -502,7 +502,10 @@
    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;




More information about the Ros-diffs mailing list