[WIN32K] Apply some bits of Wine commit 88acc9c8 by Akihiro Sagawa: Don't modify output glyph metrics unless the function succeeds. CORE-9746

svn path=/trunk/; revision=67972
This commit is contained in:
Amine Khaldi 2015-05-30 17:00:52 +00:00
parent b1e5b0ed46
commit e59aa0f1d0

View file

@ -2027,11 +2027,11 @@ ftGdiGetGlyphOutline(
IntUnLockFreeType;
if (pgm) RtlCopyMemory(pgm, &gm, sizeof(GLYPHMETRICS));
if (iFormat == GGO_METRICS)
{
DPRINT("GGO_METRICS Exit!\n");
*pgm = gm;
return 1; /* FIXME */
}
@ -2234,6 +2234,7 @@ ftGdiGetGlyphOutline(
}
DPRINT("ftGdiGetGlyphOutline END and needed %lu\n", needed);
*pgm = gm;
return needed;
}