mirror of
https://github.com/reactos/reactos.git
synced 2024-07-04 11:44:33 +00:00
[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:
parent
b1e5b0ed46
commit
e59aa0f1d0
|
@ -2027,11 +2027,11 @@ ftGdiGetGlyphOutline(
|
||||||
|
|
||||||
IntUnLockFreeType;
|
IntUnLockFreeType;
|
||||||
|
|
||||||
if (pgm) RtlCopyMemory(pgm, &gm, sizeof(GLYPHMETRICS));
|
|
||||||
|
|
||||||
if (iFormat == GGO_METRICS)
|
if (iFormat == GGO_METRICS)
|
||||||
{
|
{
|
||||||
DPRINT("GGO_METRICS Exit!\n");
|
DPRINT("GGO_METRICS Exit!\n");
|
||||||
|
*pgm = gm;
|
||||||
return 1; /* FIXME */
|
return 1; /* FIXME */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2234,6 +2234,7 @@ ftGdiGetGlyphOutline(
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINT("ftGdiGetGlyphOutline END and needed %lu\n", needed);
|
DPRINT("ftGdiGetGlyphOutline END and needed %lu\n", needed);
|
||||||
|
*pgm = gm;
|
||||||
return needed;
|
return needed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue