mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[Win32k]
- Attempt to fix CORE-7554. svn path=/trunk/; revision=60881
This commit is contained in:
parent
8ea75e12eb
commit
f7bf7d04f4
|
@ -45,10 +45,9 @@ VIS_ComputeVisibleRegion(
|
||||||
CurrentWindow = Wnd->spwndParent;
|
CurrentWindow = Wnd->spwndParent;
|
||||||
while (CurrentWindow)
|
while (CurrentWindow)
|
||||||
{
|
{
|
||||||
if ( CurrentWindow->state2 & WNDS2_INDESTROY ||
|
if (!VerifyWnd(CurrentWindow))
|
||||||
CurrentWindow->state & WNDS_DESTROYED )
|
|
||||||
{
|
{
|
||||||
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);
|
if (VisRgn) GreDeleteObject(VisRgn);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -245,7 +245,7 @@ noparent:
|
||||||
Dce->DCXFlags &= ~DCX_DCEDIRTY;
|
Dce->DCXFlags &= ~DCX_DCEDIRTY;
|
||||||
GdiSelectVisRgn(Dce->hDC, hRgnVisible);
|
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);
|
IntEngWindowChanged(Window, WOC_RGN_CLIENT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue