[PATCH 0/1] MR8471: gdiplus: Don't zero out allocated memory in GdipAlloc().
This should improve performance a bit. Manual tests show that GdipAlloc() doesn't zero out allocated memory. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8471
From: Zhiyi Zhang <zzhang(a)codeweavers.com> This should improve performance a bit. Manual tests show that GdipAlloc() doesn't zero out allocated memory. --- dlls/gdiplus/gdiplus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdiplus/gdiplus.c b/dlls/gdiplus/gdiplus.c index 32e287b0409..1dbb96349be 100644 --- a/dlls/gdiplus/gdiplus.c +++ b/dlls/gdiplus/gdiplus.c @@ -143,7 +143,7 @@ ULONG WINAPI GdiplusShutdown_wrapper(ULONG_PTR token) */ void* WINGDIPAPI GdipAlloc(SIZE_T size) { - return calloc(1, size); + return malloc(size); } /***************************************************** -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8471
This merge request was approved by Esme Povirk. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8471
participants (3)
-
Esme Povirk (@madewokherd) -
Zhiyi Zhang -
Zhiyi Zhang (@zhiyi)