Henri Verbeet : d2d1: Properly set an error state when adding the vertex fails in d2d_geometry_sink_BeginFigure ().
Alexandre Julliard
julliard at winehq.org
Tue Dec 6 16:27:43 CST 2016
Module: wine
Branch: master
Commit: e37ba63d2f0bc5b7383d6c751901a7a6b53453bf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e37ba63d2f0bc5b7383d6c751901a7a6b53453bf
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Dec 5 13:16:02 2016 +0100
d2d1: Properly set an error state when adding the vertex fails in d2d_geometry_sink_BeginFigure().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d2d1/geometry.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/d2d1/geometry.c b/dlls/d2d1/geometry.c
index afbf339..cb6fab8 100644
--- a/dlls/d2d1/geometry.c
+++ b/dlls/d2d1/geometry.c
@@ -1777,7 +1777,11 @@ static void STDMETHODCALLTYPE d2d_geometry_sink_BeginFigure(ID2D1GeometrySink *i
}
if (!d2d_figure_add_vertex(&geometry->u.path.figures[geometry->u.path.figure_count - 1], start_point))
+ {
ERR("Failed to add vertex.\n");
+ geometry->u.path.state = D2D_GEOMETRY_STATE_ERROR;
+ return;
+ }
geometry->u.path.state = D2D_GEOMETRY_STATE_FIGURE;
++geometry->u.path.segment_count;
More information about the wine-cvs
mailing list