25 Mar
2025
25 Mar
'25
8:19 p.m.
Bartosz Kosiorek (@gang65) commented about dlls/gdiplus/region.c:
+ int i, subpath_start=0; + + for (i=1; i < path->pathdata.Count && stat == Ok; i++) { - hdc = new_hdc = CreateCompatibleDC(0); - if (!new_hdc) - return OutOfMemory; + BYTE type = path->pathdata.Types[i]; + + if ((type&PathPointTypePathTypeMask) == PathPointTypeStart) + subpath_start = i;
- stat = GdipCreateFromHDC(new_hdc, &new_graphics); - graphics = new_graphics; - if (stat != Ok) + if ((type&PathPointTypePathTypeMask) == PathPointTypeLine)
if ((type & PathPointTypePathTypeMask) == PathPointTypeLine)
as it is in line: 1097 -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7654#note_99050