Author: tkreuzer
Date: Wed Mar 2 23:02:12 2011
New Revision: 50960
URL:
http://svn.reactos.org/svn/reactos?rev=50960&view=rev
Log:
[WIN32K]
Acquire ownership of monitor region before deleting it.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/monitor.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/monitor.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/monitor.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/monitor.c [iso-8859-1] Wed Mar 2
23:02:12 2011
@@ -282,7 +282,10 @@
Monitor->rcWork = Monitor->rcMonitor;
if (Monitor->hrgnMonitor)
+ {
+ GDIOBJ_SetOwnership(Monitor->hrgnMonitor, PsGetCurrentProcess());
REGION_FreeRgnByHandle(Monitor->hrgnMonitor);
+ }
Monitor->hrgnMonitor = IntSysCreateRectRgnIndirect( &Monitor->rcMonitor );