mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
[WIN32K]
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user