- 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:
Filip Navara 2004-12-04 22:07:24 +00:00
parent 14db5c210e
commit 86d655cae7

View file

@ -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;