Strange crash

Dmitry Timoshkov dmitry at sloboda.ru
Mon Apr 16 23:18:12 CDT 2001


"Alexandre Julliard" <julliard at winehq.com> wrote:

> > Commenting lines 36-37
> >     physDev->pen.width = GDI_ROUND((FLOAT)pen->logpen.lopnWidth.x *
> >                                    dc->xformWorld2Vport.eM11 * 0.5);
> > in X11DRV_PEN_SelectObject (graphics/x11drv/pen.c) cures the problem.
> > 
> > Why call to floor() leads to crash?
> 
> Exception c000008f is EXCEPTION_FLT_INEXACT_RESULT. Probably one of
> the floating point values is invalid, or something similar.

Exception occurs when pen->logpen.lopnWidth.x = 0 and dc->xformWorld2Vport.eM11 = 0.0
It's very strange. Attached patch helps to eliminate crash. But I don't understand
where the source of problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pen.c.diff
Type: application/octet-stream
Size: 844 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20010417/3afd3087/pen.c.obj


More information about the wine-devel mailing list