Commit 0d211d1c authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Limit lastChar to 0xff in PSDRV_GetCharWidth.

parent f203ab66
......@@ -188,6 +188,7 @@ BOOL PSDRV_GetCharWidth( DC *dc, UINT firstChar, UINT lastChar,
TRACE(psdrv, "first = %d last = %d\n", firstChar, lastChar);
if(lastChar > 0xff) return FALSE;
for( i = firstChar; i <= lastChar; i++ )
*buffer++ = physDev->font.afm->CharWidths[i] * physDev->font.scale;
......
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