Dmitry Timoshkov : gdiplus: Determine type of the path at the time the region data are written instead of the path creation time .