mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[Win32k]
- Attempt to fix CORE-7554. svn path=/trunk/; revision=60881
This commit is contained in:
parent
8ea75e12eb
commit
f7bf7d04f4
2 changed files with 3 additions and 4 deletions
|
@ -45,10 +45,9 @@ VIS_ComputeVisibleRegion(
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -245,7 +245,7 @@ noparent:
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue