Author: gadamopoulos
Date: Sun Aug 14 10:26:28 2011
New Revision: 53221
URL: http://svn.reactos.org/svn/reactos?rev=53221&view=rev
Log:
[win32k]
- Delete the region passed to NtUserSetWindowRgn. Fixes a horrible region leak that happens in every window that uses SetWindowRgn
Modified:
branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/winpos.c
Modified: branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/winpos.c
URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/ThemesSupport/subsyst…
==============================================================================
--- branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] (original)
+++ branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] Sun Aug 14 10:26:28 2011
@@ -2073,6 +2073,9 @@
hrgnCopy = NULL;
}
+ /* Delete the region passed by the caller */
+ GreDeleteObject(hRgn);
+
if (Window->hrgnClip)
{
/* Delete no longer needed region handle */
Author: gadamopoulos
Date: Sat Aug 13 21:17:44 2011
New Revision: 53215
URL: http://svn.reactos.org/svn/reactos?rev=53215&view=rev
Log:
[win32k]
- Do not offset the region in NtUserSetWindowRgn
Modified:
branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/winpos.c
Modified: branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/winpos.c
URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/ThemesSupport/subsyst…
==============================================================================
--- branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] (original)
+++ branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] Sat Aug 13 21:17:44 2011
@@ -2082,9 +2082,6 @@
if (hrgnCopy)
{
- if (Window->fnid != FNID_DESKTOP)
- NtGdiOffsetRgn(hrgnCopy, Window->rcWindow.left, Window->rcWindow.top);
-
/* Set public ownership */
IntGdiSetRegionOwner(hrgnCopy, GDI_OBJ_HMGR_PUBLIC);
}
Author: tkreuzer
Date: Sat Aug 13 20:40:41 2011
New Revision: 53213
URL: http://svn.reactos.org/svn/reactos?rev=53213&view=rev
Log:
[WIN32K]
Fix return value of IntDesktopOkToClose, spotted by Cameron.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] Sat Aug 13 20:40:41 2011
@@ -175,7 +175,7 @@
if( pti == NULL)
{
/* This happens when we leak desktop handles */
- return TRUE;
+ return STATUS_SUCCESS;
}
/* Do not allow the current desktop or the initial desktop to be closed */