mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
only dump stack traces when GDI_DEBUG is enabled
svn path=/trunk/; revision=13629
This commit is contained in:
parent
d786cecb72
commit
5b3d4bc5b1
|
@ -801,13 +801,17 @@ LockHandle:
|
||||||
if((EntryType & ~GDI_HANDLE_REUSE_MASK) == 0)
|
if((EntryType & ~GDI_HANDLE_REUSE_MASK) == 0)
|
||||||
{
|
{
|
||||||
DPRINT1("Attempted to lock object 0x%x that is deleted!\n", hObj);
|
DPRINT1("Attempted to lock object 0x%x that is deleted!\n", hObj);
|
||||||
|
#ifdef GDI_DEBUG
|
||||||
KeRosDumpStackFrames ( NULL, 20 );
|
KeRosDumpStackFrames ( NULL, 20 );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DPRINT1("Attempted to lock object 0x%x, type mismatch (0x%x : 0x%x)\n",
|
DPRINT1("Attempted to lock object 0x%x, type mismatch (0x%x : 0x%x)\n",
|
||||||
hObj, EntryType & ~GDI_HANDLE_REUSE_MASK, ExpectedType & ~GDI_HANDLE_REUSE_MASK);
|
hObj, EntryType & ~GDI_HANDLE_REUSE_MASK, ExpectedType & ~GDI_HANDLE_REUSE_MASK);
|
||||||
|
#ifdef GDI_DEBUG
|
||||||
KeRosDumpStackFrames ( NULL, 20 );
|
KeRosDumpStackFrames ( NULL, 20 );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#ifdef GDI_DEBUG
|
#ifdef GDI_DEBUG
|
||||||
DPRINT1("-> called from %s:%i\n", file, line);
|
DPRINT1("-> called from %s:%i\n", file, line);
|
||||||
|
@ -839,8 +843,8 @@ LockHandle:
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DPRINT1("Attempted to lock foreign handle: 0x%x, Owner: 0x%x locked: 0x%x Caller: 0x%x, stockobj: 0x%x\n", hObj, (ULONG_PTR)PrevProcId & ~0x1, (ULONG_PTR)PrevProcId & 0x1, PsGetCurrentProcessId(), GDI_HANDLE_IS_STOCKOBJ(hObj));
|
DPRINT1("Attempted to lock foreign handle: 0x%x, Owner: 0x%x locked: 0x%x Caller: 0x%x, stockobj: 0x%x\n", hObj, (ULONG_PTR)PrevProcId & ~0x1, (ULONG_PTR)PrevProcId & 0x1, PsGetCurrentProcessId(), GDI_HANDLE_IS_STOCKOBJ(hObj));
|
||||||
KeRosDumpStackFrames ( NULL, 20 );
|
|
||||||
#ifdef GDI_DEBUG
|
#ifdef GDI_DEBUG
|
||||||
|
KeRosDumpStackFrames ( NULL, 20 );
|
||||||
DPRINT1("-> called from %s:%i\n", file, line);
|
DPRINT1("-> called from %s:%i\n", file, line);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue