mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 02:10:07 +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;
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue