Commit 108a6336 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdiplus: Use flags 0 for an empty path in region to follow Windows7+ behaviour.

parent 9797afd0
......@@ -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++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment