mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user