Commit a643337c authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32: Don't overrun the current scanline while copying a glyph's bitmap.

parent 7c8b8e0a
...@@ -4384,7 +4384,12 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format, ...@@ -4384,7 +4384,12 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format,
INT x; INT x;
while(h--) { while(h--) {
for(x = 0; x < pitch; x++) for(x = 0; x < pitch; x++)
dst[x] = (src[x / 8] & (1 << ( (7 - (x % 8))))) ? 0xff : 0; {
if(x < ft_face->glyph->bitmap.width)
dst[x] = (src[x / 8] & (1 << ( (7 - (x % 8))))) ? 0xff : 0;
else
dst[x] = 0;
}
src += ft_face->glyph->bitmap.pitch; src += ft_face->glyph->bitmap.pitch;
dst += pitch; dst += pitch;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment