mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
[WIN32K]
Acquire ownership of monitor region before deleting it. svn path=/trunk/; revision=50960
This commit is contained in:
@@ -282,7 +282,10 @@ IntResetMonitorSize(IN PDEVOBJ *pGdiDevice)
|
||||
Monitor->rcWork = Monitor->rcMonitor;
|
||||
|
||||
if (Monitor->hrgnMonitor)
|
||||
{
|
||||
GDIOBJ_SetOwnership(Monitor->hrgnMonitor, PsGetCurrentProcess());
|
||||
REGION_FreeRgnByHandle(Monitor->hrgnMonitor);
|
||||
}
|
||||
|
||||
Monitor->hrgnMonitor = IntSysCreateRectRgnIndirect( &Monitor->rcMonitor );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user