d2d1: Update "p0" after inserting a vertex in d2d_geometry_resolve_beziers().
This fixes a failure in the d2d1 tests when run with warn+heap. Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5d470a6e7f
commit
df63a7f890
|
@ -1942,6 +1942,8 @@ static HRESULT d2d_geometry_resolve_beziers(struct d2d_geometry *geometry)
|
|||
{
|
||||
sign = 1.0f;
|
||||
d2d_figure_insert_vertex(figure, j + 1, *p1);
|
||||
/* Inserting a vertex potentially invalidates p0. */
|
||||
p0 = &figure->vertices[j];
|
||||
++j;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue