mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 05:42:57 +00:00
- Don't allow changing ownership of foreign GDI handles.
svn path=/trunk/; revision=12167
This commit is contained in:
parent
c79373c4c1
commit
7b483dc2f7
1 changed files with 2 additions and 6 deletions
|
@ -19,7 +19,7 @@
|
||||||
/*
|
/*
|
||||||
* GDIOBJ.C - GDI object manipulation routines
|
* GDIOBJ.C - GDI object manipulation routines
|
||||||
*
|
*
|
||||||
* $Id: gdiobj.c,v 1.77 2004/12/13 21:59:28 weiden Exp $
|
* $Id: gdiobj.c,v 1.78 2004/12/17 15:12:37 navaraf Exp $
|
||||||
*/
|
*/
|
||||||
#include <w32k.h>
|
#include <w32k.h>
|
||||||
|
|
||||||
|
@ -1245,11 +1245,7 @@ LockHandle:
|
||||||
}
|
}
|
||||||
else if((PrevProcId >> 1) != (LONG)PsGetCurrentProcessId())
|
else if((PrevProcId >> 1) != (LONG)PsGetCurrentProcessId())
|
||||||
{
|
{
|
||||||
/* FIXME - should we really allow changing the ownership of objects we don't own? */
|
DPRINT1("Attempted to change ownership of object 0x%x (pid: 0x%x) from pid 0x%x!!!\n", ObjectHandle, PrevProcId >> 1, PsGetCurrentProcessId());
|
||||||
DPRINT1("WARNING! Changing ownership of object 0x%x (pid: 0x%x) from pid 0x%x!!!\n", ObjectHandle, PrevProcId >> 1, PsGetCurrentProcessId());
|
|
||||||
ProcessId = PrevProcId & ~0x1;
|
|
||||||
LockedProcessId = ProcessId | 0x1;
|
|
||||||
goto LockHandle;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue