Commit 00692f5b authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

gdiplus: Prevent uninitializd memory access (Coverity).

This fixes a regression by 69d81540 Originally this used GdipAlloc (calloc)
parent c03c1727
......@@ -3404,6 +3404,8 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
{
if (flags & 0x800) /* P */
{
points[0].X = 0;
points[0].Y = 0;
for (i = 1; i < fill->Count; i++)
{
points[i].X = points[i - 1].X + fill->PointData.pointsR[i].X;
......
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