Author: tkreuzer
Date: Fri Dec 19 11:12:40 2014
New Revision: 65747
URL:
http://svn.reactos.org/svn/reactos?rev=65747&view=rev
Log:
[WIN32K]
Dump object event log, when trying to dereference an object with 0 references.
Modified:
trunk/reactos/win32ss/gdi/ntgdi/gdiobj.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/gdiobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/gdiobj.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/gdiobj.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/gdiobj.c [iso-8859-1] Fri Dec 19 11:12:40 2014
@@ -559,6 +559,10 @@
if (ulIndex)
{
/* Decrement reference count */
+ if ((gpaulRefCount[ulIndex] & REF_MASK_COUNT) == 0)
+ {
+ DBG_DUMP_EVENT_LIST(&pobj->slhLog);
+ }
ASSERT((gpaulRefCount[ulIndex] & REF_MASK_COUNT) > 0);
cRefs = InterlockedDecrement((LONG*)&gpaulRefCount[ulIndex]);
DBG_LOGEVENT(&pobj->slhLog, EVENT_DEREFERENCE, cRefs);