[5/6] gdiplus: Use flags 0 for an empty path in region to follow Windows7+ behaviour.
Dmitry Timoshkov
dmitry at baikal.ru
Fri Nov 8 01:33:46 CST 2013
---
dlls/gdiplus/region.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/gdiplus/region.c b/dlls/gdiplus/region.c
index 9ac3124..4cd9636 100644
--- a/dlls/gdiplus/region.c
+++ b/dlls/gdiplus/region.c
@@ -426,7 +426,7 @@ GpStatus WINGDIPAPI GdipCreateRegionPath(GpPath *path, GpRegion **region)
{
region_element* element;
GpStatus stat;
- DWORD flags = FLAGS_INTPATH;
+ DWORD flags;
INT count, i;
TRACE("%p, %p\n", path, region);
@@ -446,6 +446,8 @@ GpStatus WINGDIPAPI GdipCreateRegionPath(GpPath *path, GpRegion **region)
element = &(*region)->node;
count = path->pathdata.Count;
+ flags = count ? FLAGS_INTPATH : FLAGS_NOFLAGS;
+
/* Test to see if the path is an Integer path */
for (i = 0; i < count; i++)
{
--
1.8.4.1
More information about the wine-patches
mailing list