Module: wine Branch: master Commit: 419ecb35e113d163d449cf128ce3d144854efef0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=419ecb35e113d163d449cf128c...
Author: Francois Gouget fgouget@free.fr Date: Tue May 19 11:20:57 2009 +0200
mstask/tests: Replace realloc() with HeapReAlloc().
---
dlls/mstask/tests/task.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/mstask/tests/task.c b/dlls/mstask/tests/task.c index 328dd76..a0a851a 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; }