From: Elizabeth Figura zfigura@codeweavers.com
The eventual array will only need 1/2 of the points, but we need the whole max_points to generate the ellipse top half.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57306 --- dlls/win32u/dibdrv/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/win32u/dibdrv/graphics.c b/dlls/win32u/dibdrv/graphics.c index 414737fa8ca..197e91a7f5d 100644 --- a/dlls/win32u/dibdrv/graphics.c +++ b/dlls/win32u/dibdrv/graphics.c @@ -1529,7 +1529,7 @@ BOOL dibdrv_RoundRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom, * is exactly as many as in one ellipse arc. */ max_points = get_arc_max_points( dc, &rect ); points = malloc( max_points * sizeof(*points) ); - top_points = malloc( max_points / 2 * sizeof(*points) ); + top_points = malloc( max_points * sizeof(*points) ); if (!points || !top_points) { free( points );