mirror of
https://github.com/reactos/reactos.git
synced 2024-08-27 13:48:42 +00:00
[WIN32K]
Dump object event log, when trying to dereference an object with 0 references. svn path=/trunk/; revision=65747
This commit is contained in:
parent
b2a9ab7151
commit
9959f71bba
|
@ -559,6 +559,10 @@ GDIOBJ_vDereferenceObject(POBJ pobj)
|
||||||
if (ulIndex)
|
if (ulIndex)
|
||||||
{
|
{
|
||||||
/* Decrement reference count */
|
/* Decrement reference count */
|
||||||
|
if ((gpaulRefCount[ulIndex] & REF_MASK_COUNT) == 0)
|
||||||
|
{
|
||||||
|
DBG_DUMP_EVENT_LIST(&pobj->slhLog);
|
||||||
|
}
|
||||||
ASSERT((gpaulRefCount[ulIndex] & REF_MASK_COUNT) > 0);
|
ASSERT((gpaulRefCount[ulIndex] & REF_MASK_COUNT) > 0);
|
||||||
cRefs = InterlockedDecrement((LONG*)&gpaulRefCount[ulIndex]);
|
cRefs = InterlockedDecrement((LONG*)&gpaulRefCount[ulIndex]);
|
||||||
DBG_LOGEVENT(&pobj->slhLog, EVENT_DEREFERENCE, cRefs);
|
DBG_LOGEVENT(&pobj->slhLog, EVENT_DEREFERENCE, cRefs);
|
||||||
|
|
Loading…
Reference in a new issue