Author: jimtabor
Date: Fri Nov 8 00:26:08 2013
New Revision: 60881
URL:
http://svn.reactos.org/svn/reactos?rev=60881&view=rev
Log:
[Win32k]
- Attempt to fix CORE-7554.
Modified:
trunk/reactos/win32ss/user/ntuser/vis.c
trunk/reactos/win32ss/user/ntuser/windc.c
Modified: trunk/reactos/win32ss/user/ntuser/vis.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/vis.c?…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/vis.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/vis.c [iso-8859-1] Fri Nov 8 00:26:08 2013
@@ -45,10 +45,9 @@
CurrentWindow = Wnd->spwndParent;
while (CurrentWindow)
{
- if ( CurrentWindow->state2 & WNDS2_INDESTROY ||
- CurrentWindow->state & WNDS_DESTROYED )
+ if (!VerifyWnd(CurrentWindow))
{
- ERR("ATM the Current Window or Parent is dead!\n");
+ ERR("ATM the Current Window or Parent is dead! %p\n",CurrentWindow);
if (VisRgn) GreDeleteObject(VisRgn);
return NULL;
}
Modified: trunk/reactos/win32ss/user/ntuser/windc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/windc.…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/windc.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/windc.c [iso-8859-1] Fri Nov 8 00:26:08 2013
@@ -245,7 +245,7 @@
Dce->DCXFlags &= ~DCX_DCEDIRTY;
GdiSelectVisRgn(Dce->hDC, hRgnVisible);
- if (Window != NULL)
+ if (VerifyWnd(Window)) // Window maybe dead by this time before finishing the DCE
release.
{
IntEngWindowChanged(Window, WOC_RGN_CLIENT);
}