oleaut32/tests: Replace realloc() with HeapReAlloc().
This commit is contained in:
parent
419ecb35e1
commit
1ef2f3844f
dlls/oleaut32/tests
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue