From 1ef2f3844fd257e22a161fc5e354e5a0b0fbb5d7 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 19 May 2009 11:21:07 +0200 Subject: [PATCH] oleaut32/tests: Replace realloc() with HeapReAlloc(). --- dlls/oleaut32/tests/tmarshal.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c index a9392c5ff4c..b8cc57d6c8e 100644 --- a/dlls/oleaut32/tests/tmarshal.c +++ b/dlls/oleaut32/tests/tmarshal.c @@ -56,7 +56,11 @@ static char *get_tmp_space( int size ) int idx; idx = ++pos % (sizeof(list)/sizeof(list[0])); - if ((ret = realloc( list[idx], size ))) list[idx] = ret; + if (list[idx]) + ret = HeapReAlloc( GetProcessHeap(), 0, list[idx], size ); + else + ret = HeapAlloc( GetProcessHeap(), 0, size ); + if (ret) list[idx] = ret; return ret; } -- 2.11.4.GIT