gdi32: Simplify font->aveWidth sanity-checking to remove possible division by zero.

Sam Edwards cfsworks at gmail.com
Tue May 7 23:17:56 CDT 2013


See http://www.winehq.org/pipermail/wine-devel/2013-May/099795.html for 
the rationale behind this patch.

This also tries to address Aric's observation of negative AveCharWidth, 
see http://www.winehq.org/pipermail/wine-devel/2013-May/099786.html

It makes the most sense to get rid of this sanity check altogether, but 
until then, this should be a more robust way of doing it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130507/b8acbe87/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gdi32-Simplify-font-aveWidth-sanity-checking-to-remo.patch
Type: text/x-patch
Size: 1590 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130507/b8acbe87/attachment.bin>


More information about the wine-patches mailing list