diff --git a/libfreerdp/primitives/test/TestPrimitivesColors.c b/libfreerdp/primitives/test/TestPrimitivesColors.c index 291f42a06..3a13252d7 100644 --- a/libfreerdp/primitives/test/TestPrimitivesColors.c +++ b/libfreerdp/primitives/test/TestPrimitivesColors.c @@ -36,11 +36,11 @@ static BOOL test_RGBToRGB_16s8u_P3AC4R_func(prim_size_t roi, DWORD DstFormat) PROFILER_DEFINE(optProf) PROFILER_CREATE(genericProf, "RGBToRGB_16s8u_P3AC4R-GENERIC") PROFILER_CREATE(optProf, "RGBToRGB_16s8u_P3AC4R-OPTIMIZED") - r = winpr_aligned_recalloc(NULL, 1, rgbStride * roi.height, 16); - g = winpr_aligned_recalloc(NULL, 1, rgbStride * roi.height, 16); - b = winpr_aligned_recalloc(NULL, 1, rgbStride * roi.height, 16); - out1 = winpr_aligned_recalloc(NULL, 1, dstStride * roi.height, 16); - out2 = winpr_aligned_recalloc(NULL, 1, dstStride * roi.height, 16); + r = winpr_aligned_calloc(1, rgbStride * roi.height, 16); + g = winpr_aligned_calloc(1, rgbStride * roi.height, 16); + b = winpr_aligned_calloc(1, rgbStride * roi.height, 16); + out1 = winpr_aligned_calloc(1, dstStride * roi.height, 16); + out2 = winpr_aligned_calloc(1, dstStride * roi.height, 16); if (!r || !g || !b || !out1 || !out2) goto fail; diff --git a/libfreerdp/primitives/test/TestPrimitivesYCoCg.c b/libfreerdp/primitives/test/TestPrimitivesYCoCg.c index 6c6571185..5f8566fc0 100644 --- a/libfreerdp/primitives/test/TestPrimitivesYCoCg.c +++ b/libfreerdp/primitives/test/TestPrimitivesYCoCg.c @@ -36,9 +36,9 @@ static BOOL test_YCoCgRToRGB_8u_AC4R_func(UINT32 width, UINT32 height) PIXEL_FORMAT_RGBX32, PIXEL_FORMAT_BGRA32, PIXEL_FORMAT_BGRX32 }; PROFILER_DEFINE(genericProf) PROFILER_DEFINE(optProf) - in = winpr_aligned_recalloc(NULL, 1, size, 16); - out_c = winpr_aligned_recalloc(NULL, 1, size, 16); - out_sse = winpr_aligned_recalloc(NULL, 1, size, 16); + in = winpr_aligned_calloc(1, size, 16); + out_c = winpr_aligned_calloc(1, size, 16); + out_sse = winpr_aligned_calloc(1, size, 16); if (!in || !out_c || !out_sse) goto fail;