mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 12:18:13 +00:00
IntGdiLineTo: the dc pen might be deleted, don't assert, instead fall back to BLACK_PEN, fixes a crash when using FF
svn path=/trunk/; revision=33793
This commit is contained in:
parent
91b1e254fd
commit
2e3c186197
|
@ -142,8 +142,12 @@ IntGdiLineTo(DC *dc,
|
|||
|
||||
/* get BRUSHOBJ from current pen. */
|
||||
PenBrushObj = PENOBJ_LockPen( Dc_Attr->hpen );
|
||||
/* FIXME - PenBrushObj can be NULL!!!! Don't assert here! */
|
||||
if (!PenBrushObj)
|
||||
{
|
||||
/* default to BLACK_PEN */
|
||||
PenBrushObj = PENOBJ_LockPen(NtGdiGetStockObject(BLACK_PEN));
|
||||
ASSERT(PenBrushObj);
|
||||
}
|
||||
|
||||
if (!(PenBrushObj->flAttrs & GDIBRUSH_IS_NULL))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue