This should improve performance a bit. Manual tests show that GdipAlloc() doesn't zero out allocated memory.
From: Zhiyi Zhang zzhang@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); }
/*****************************************************
This merge request was approved by Esme Povirk.