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:
Timo Kreuzer 2008-06-01 00:54:08 +00:00
parent 91b1e254fd
commit 2e3c186197

View file

@ -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! */
ASSERT(PenBrushObj);
if (!PenBrushObj)
{
/* default to BLACK_PEN */
PenBrushObj = PENOBJ_LockPen(NtGdiGetStockObject(BLACK_PEN));
ASSERT(PenBrushObj);
}
if (!(PenBrushObj->flAttrs & GDIBRUSH_IS_NULL))
{