Commit 4d8cf750 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

userenv/tests: Replace realloc() with HeapReAlloc().

parent 1ef2f384
...@@ -51,7 +51,11 @@ static char *get_tmp_space( int size ) ...@@ -51,7 +51,11 @@ static char *get_tmp_space( int size )
int idx; int idx;
idx = ++pos % (sizeof(list)/sizeof(list[0])); 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; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment