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