mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:55:42 +00:00
- Set the ownership of NCUpdateRegion before returning the WM_NCPAINT message, so it's possible to delete it.
svn path=/trunk/; revision=11928
This commit is contained in:
parent
14db5c210e
commit
86d655cae7
1 changed files with 6 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* $Id: painting.c,v 1.87 2004/11/15 23:10:42 gvg Exp $
|
||||
* $Id: painting.c,v 1.88 2004/12/04 22:07:24 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -640,6 +640,11 @@ IntGetPaintMessage(HWND hWnd, UINT MsgFilterMin, UINT MsgFilterMax,
|
|||
Message->lParam = 0;
|
||||
if (Remove)
|
||||
{
|
||||
if ((HANDLE) 1 != Window->NCUpdateRegion &&
|
||||
NULL != Window->NCUpdateRegion)
|
||||
{
|
||||
GDIOBJ_SetOwnership(Window->NCUpdateRegion, PsGetCurrentProcess());
|
||||
}
|
||||
IntValidateParent(Window, Window->NCUpdateRegion);
|
||||
Window->NCUpdateRegion = NULL;
|
||||
Window->Flags &= ~WINDOWOBJECT_NEED_NCPAINT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue