Francois Gouget : userenv/tests: Replace realloc() with HeapReAlloc().
Alexandre Julliard
julliard at winehq.org
Tue May 19 09:23:05 CDT 2009
Module: wine
Branch: master
Commit: 4d8cf750ff4942ea6aa12aa4a905e17a2988d6ea
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4d8cf750ff4942ea6aa12aa4a905e17a2988d6ea
Author: Francois Gouget <fgouget at free.fr>
Date: Tue May 19 11:21:12 2009 +0200
userenv/tests: Replace realloc() with HeapReAlloc().
---
dlls/userenv/tests/userenv.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/userenv/tests/userenv.c b/dlls/userenv/tests/userenv.c
index d782d2f..83bfda0 100644
--- a/dlls/userenv/tests/userenv.c
+++ b/dlls/userenv/tests/userenv.c
@@ -51,7 +51,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;
}
More information about the wine-cvs
mailing list