18 Jan
2024
18 Jan
'24
6:57 p.m.
Esme Povirk (@madewokherd) commented about dlls/gdiplus/gdiplus.c:
return TRUE; }
+BOOL lengthen_path_strict(GpPath *path, INT len) +{ + /* Strictly allocate the requested memory size */ + /* Used only on fresh paths */ + path->pathdata.Points = calloc(len, sizeof(PointF)); + path->pathdata.Types = calloc(1, len); + + if (!path->pathdata.Points || !path->pathdata.Types) + { + free(path->pathdata.Points); + free(path->pathdata.Types); + free(path);
If this can free the path as a side-effect, it should also create it. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4803#note_57989