Add some more debug output in case of a failed ASSERT

svn path=/trunk/; revision=52091
This commit is contained in:
Timo Kreuzer 2011-06-05 16:00:24 +00:00
parent 83aed0697f
commit a0f9149ce9

View file

@ -139,6 +139,13 @@ GdiPoolAllocate(
/* Get a free section */
ple = pPool->leReadyList.Flink;
pSection = CONTAINING_RECORD(ple, GDI_POOL_SECTION, leReadyLink);
if (pSection->cAllocCount >= pPool->cSlotsPerSection)
{
DPRINT1("pSection->cAllocCount=%ld, pPool->cSlotsPerSection=%ld\n",
pSection->cAllocCount, pPool->cSlotsPerSection);
DBG_DUMP_EVENT_LIST(&pPool->slhLog);
ASSERT(FALSE);
}
ASSERT(pSection->cAllocCount < pPool->cSlotsPerSection);
}
else