mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 15:34:13 +00:00
[WIN32K]
Check for dc->dclevel.pSurface == NULL in IntGdiPolygon. CORE-10377 #resolve svn path=/trunk/; revision=70179
This commit is contained in:
parent
9e8af4769b
commit
99cbcf396b
|
@ -81,8 +81,11 @@ IntGdiPolygon(PDC dc,
|
||||||
pbrFill = dc->dclevel.pbrFill;
|
pbrFill = dc->dclevel.pbrFill;
|
||||||
pbrLine = dc->dclevel.pbrLine;
|
pbrLine = dc->dclevel.pbrLine;
|
||||||
psurf = dc->dclevel.pSurface;
|
psurf = dc->dclevel.pSurface;
|
||||||
/* FIXME: psurf can be NULL!!!! don't assert but handle this case gracefully! */
|
if (psurf == NULL)
|
||||||
ASSERT(psurf);
|
{
|
||||||
|
/* Memory DC without a bitmap selected, nothing to do. */
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Now fill the polygon with the current fill brush. */
|
/* Now fill the polygon with the current fill brush. */
|
||||||
if (!(pbrFill->flAttrs & BR_IS_NULL))
|
if (!(pbrFill->flAttrs & BR_IS_NULL))
|
||||||
|
|
Loading…
Reference in a new issue