gdiplus: Avoid calling GdipFillPath() with an empty path.
commitcba24001e482fa8a8a1fbf5d5390539e2792b1aa
authorZhiyi Zhang <zzhang@codeweavers.com>
Wed, 20 Jun 2018 07:14:19 +0000 (20 15:14 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 20 Jun 2018 14:53:34 +0000 (20 16:53 +0200)
tree2967e149282198dc5486c76a8ff5f94449141457
parent07cf5ed18940a61d5477a611529cf17be18e5c5d
gdiplus: Avoid calling GdipFillPath() with an empty path.

There is no point filling an empty path. And an empty
path will cause SelectClipPath() used in brush_fill_path()
to return error.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/gdiplus/graphics.c
dlls/gdiplus/tests/graphics.c