mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 00:45:49 +00:00
[win32k]
Acquire ownership of the window clip region, before deleting it. Fixes a region leak. svn path=/trunk/; revision=51457
This commit is contained in:
parent
2e7e8bb0f6
commit
7ba64c2ad6
1 changed files with 3 additions and 2 deletions
|
@ -210,7 +210,7 @@ IntEnableWindow( HWND hWnd, BOOL bEnable )
|
||||||
}
|
}
|
||||||
pWnd->style |= WS_DISABLED;
|
pWnd->style |= WS_DISABLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Update)
|
if (Update)
|
||||||
{
|
{
|
||||||
IntNotifyWinEvent(EVENT_OBJECT_STATECHANGE, pWnd, OBJID_WINDOW, CHILDID_SELF, 0);
|
IntNotifyWinEvent(EVENT_OBJECT_STATECHANGE, pWnd, OBJID_WINDOW, CHILDID_SELF, 0);
|
||||||
|
@ -517,6 +517,7 @@ static LRESULT co_UserFreeWindow(PWND Window,
|
||||||
|
|
||||||
if(Window->hrgnClip)
|
if(Window->hrgnClip)
|
||||||
{
|
{
|
||||||
|
IntGdiSetRegionOwner(Window->hrgnClip, GDI_OBJ_HMGR_POWNED);
|
||||||
GreDeleteObject(Window->hrgnClip);
|
GreDeleteObject(Window->hrgnClip);
|
||||||
Window->hrgnClip = NULL;
|
Window->hrgnClip = NULL;
|
||||||
}
|
}
|
||||||
|
@ -2265,7 +2266,7 @@ cleanup:
|
||||||
UserDereferenceObject(Window);
|
UserDereferenceObject(Window);
|
||||||
}
|
}
|
||||||
if (ParentWindow) UserDerefObjectCo(ParentWindow);
|
if (ParentWindow) UserDerefObjectCo(ParentWindow);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue