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

This commit is contained in:
Francois Gouget 2009-05-19 11:20:57 +02:00 committed by Alexandre Julliard
parent 441bc63538
commit 419ecb35e1
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}