[PATCH] gdi32: Ignore the lfHeight value when it exceeds the limit.
Akihiro Sagawa
sagawa.aki at gmail.com
Wed May 8 07:11:20 CDT 2013
This closes bug #33424. http://bugs.winehq.org/show_bug.cgi?id=33424
The reason why I wrote two WARN blocks is to avoid undefined behavior.
If height is INT_MIN, ``ppem = -height'' leads undefined behavior in
most implementations.
---
dlls/gdi32/freetype.c | 11 ++++++++-
dlls/gdi32/tests/font.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 69 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-gdi32-Ignore-the-lfHeight-value-when-it-exceeds-the-.patch
Type: text/x-patch
Size: 3582 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130508/94c9df01/attachment.bin>
More information about the wine-patches
mailing list