From 419ecb35e113d163d449cf128ce3d144854efef0 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 19 May 2009 11:20:57 +0200 Subject: [PATCH] mstask/tests: Replace realloc() with HeapReAlloc(). --- dlls/mstask/tests/task.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/mstask/tests/task.c b/dlls/mstask/tests/task.c index 328dd76958a..a0a851a586d 100644 --- a/dlls/mstask/tests/task.c +++ b/dlls/mstask/tests/task.c @@ -38,7 +38,11 @@ static char *get_tmp_space(int size) int idx; idx = ++pos % (sizeof(list)/sizeof(list[0])); - if ((ret = realloc(list[idx], size))) + if (list[idx]) + ret = HeapReAlloc( GetProcessHeap(), 0, list[idx], size ); + else + ret = HeapAlloc( GetProcessHeap(), 0, size ); + if (ret) list[idx] = ret; return ret; }