gdi32: Reset ppem to zero if we fail to find a matching height.

This commit is contained in:
Huw Davies 2013-08-28 14:21:12 +01:00 committed by Alexandre Julliard
parent bb5aa8862c
commit d089ca67e3
1 changed files with 8 additions and 2 deletions

View File

@ -4580,14 +4580,20 @@ static LONG load_VDMX(GdiFont *font, LONG height)
} else {
ppem = -height;
if(ppem < startsz || ppem > endsz)
goto end;
{
ppem = 0;
goto end;
}
for(i = 0; i < recs; i++) {
USHORT yPelHeight;
yPelHeight = GET_BE_WORD(vTable[i * 3]);
if(yPelHeight > ppem)
break; /* failed */
{
ppem = 0;
break; /* failed */
}
if(yPelHeight == ppem) {
font->yMax = GET_BE_WORD(vTable[(i * 3) + 1]);