winex11.drv: Glyph width is rounded to 32 bits, make sure to provide enough null data.

This commit is contained in:
Alexandre Julliard 2007-06-12 16:51:31 +02:00
parent 2211b6e5d0
commit 1d9874a09e
1 changed files with 2 additions and 2 deletions

View File

@ -633,7 +633,7 @@ static BOOL UploadGlyph(X11DRV_PDEVICE *physDev, int glyph, AA_Type format)
gsCacheEntryFormat *formatEntry;
UINT ggo_format = GGO_GLYPH_INDEX;
XRenderPictFormat pf;
const char zero = 0;
static const char zero[4];
switch(format) {
case AA_Grey:
@ -822,7 +822,7 @@ static BOOL UploadGlyph(X11DRV_PDEVICE *physDev, int glyph, AA_Type format)
wine_tsx11_lock();
pXRenderAddGlyphs(gdi_display, formatEntry->glyphset, &gid, &gi, 1,
buflen ? buf : &zero, buflen ? buflen : 1);
buflen ? buf : zero, buflen ? buflen : sizeof(zero));
wine_tsx11_unlock();
HeapFree(GetProcessHeap(), 0, buf);
} else {