mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 12:15:46 +00:00
[WIN32K]
Acquire ownership of monitor region before deleting it. svn path=/trunk/; revision=50960
This commit is contained in:
parent
7110c88cc0
commit
dba4ecb162
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue