mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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
1 changed files with 5 additions and 1 deletions
|
@ -801,13 +801,17 @@ LockHandle:
|
|||
if((EntryType & ~GDI_HANDLE_REUSE_MASK) == 0)
|
||||
{
|
||||
DPRINT1("Attempted to lock object 0x%x that is deleted!\n", hObj);
|
||||
#ifdef GDI_DEBUG
|
||||
KeRosDumpStackFrames ( NULL, 20 );
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
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);
|
||||
#ifdef GDI_DEBUG
|
||||
KeRosDumpStackFrames ( NULL, 20 );
|
||||
#endif
|
||||
}
|
||||
#ifdef GDI_DEBUG
|
||||
DPRINT1("-> called from %s:%i\n", file, line);
|
||||
|
@ -839,8 +843,8 @@ LockHandle:
|
|||
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));
|
||||
KeRosDumpStackFrames ( NULL, 20 );
|
||||
#ifdef GDI_DEBUG
|
||||
KeRosDumpStackFrames ( NULL, 20 );
|
||||
DPRINT1("-> called from %s:%i\n", file, line);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue