make sure at least one rect is allocated in REGION_PtsToRegion. Fixes failed assertion when starting pacman4000 (the game itself doesn't work though)
CORE-5431 #resolve

svn path=/trunk/; revision=57329
This commit is contained in:
Timo Kreuzer
2012-09-18 22:01:38 +00:00
parent 95b260a636
commit 9766e56248
+6
View File
@@ -2911,6 +2911,12 @@ REGION_PtsToRegion(
numRects = ((numFullPtBlocks * NUMPTSTOBUFFER) + iCurPtBlock) >> 1;
/* Make sure, we have at least one rect */
if (numRects == 0)
{
numRects = 1;
}
if (!(temp = ExAllocatePoolWithTag(PagedPool, numRects * sizeof(RECT), TAG_REGION)))
{
return 0;