From 113ee4971a64d9d33829907cc933fe2d7cf6e5b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Thu, 21 Aug 2003 20:14:45 +0000 Subject: [PATCH] Don't free region if handle is special value 1 (whole window) svn path=/trunk/; revision=5726 --- reactos/subsys/win32k/ntuser/winpos.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/winpos.c b/reactos/subsys/win32k/ntuser/winpos.c index 016f4bad6ce..a112c3d88af 100644 --- a/reactos/subsys/win32k/ntuser/winpos.c +++ b/reactos/subsys/win32k/ntuser/winpos.c @@ -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: winpos.c,v 1.26 2003/08/20 07:45:01 gvg Exp $ +/* $Id: winpos.c,v 1.27 2003/08/21 20:14:45 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -898,7 +898,10 @@ WinPosSetWindowPos(HWND Wnd, HWND WndInsertAfter, INT x, INT y, INT cx, } /* FIXME: Redraw the window parent. */ } - NtGdiDeleteObject(VisRgn); + if ((HRGN) 1 != VisRgn) + { + NtGdiDeleteObject(VisRgn); + } } if (!(flags & SWP_NOACTIVATE))