Check for dc->dclevel.pSurface == NULL in IntGdiPolygon. 
CORE-10377 #resolve

svn path=/trunk/; revision=70179
This commit is contained in:
Timo Kreuzer 2015-11-28 15:48:57 +00:00
parent 9e8af4769b
commit 99cbcf396b

View file

@ -81,8 +81,11 @@ IntGdiPolygon(PDC dc,
pbrFill = dc->dclevel.pbrFill;
pbrLine = dc->dclevel.pbrLine;
psurf = dc->dclevel.pSurface;
/* FIXME: psurf can be NULL!!!! don't assert but handle this case gracefully! */
ASSERT(psurf);
if (psurf == NULL)
{
/* Memory DC without a bitmap selected, nothing to do. */
return TRUE;
}
/* Now fill the polygon with the current fill brush. */
if (!(pbrFill->flAttrs & BR_IS_NULL))