From a0f9149ce97abdf35607b5fc49529d6bcee0144d Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 5 Jun 2011 16:00:24 +0000 Subject: [PATCH] [WIN32K] Add some more debug output in case of a failed ASSERT svn path=/trunk/; revision=52091 --- reactos/subsystems/win32/win32k/objects/gdipool.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reactos/subsystems/win32/win32k/objects/gdipool.c b/reactos/subsystems/win32/win32k/objects/gdipool.c index c78c789e215..2c9862b365d 100644 --- a/reactos/subsystems/win32/win32k/objects/gdipool.c +++ b/reactos/subsystems/win32/win32k/objects/gdipool.c @@ -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