Limit lastChar to 0xff in PSDRV_GetCharWidth.

This commit is contained in:
Huw D M Davies 1999-04-15 15:13:54 +00:00 committed by Alexandre Julliard
parent f203ab6604
commit 0d211d1cf5
1 changed files with 1 additions and 0 deletions

View File

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