Francois Gouget : advapi32/tests: Replace realloc() with HeapReAlloc().
Alexandre Julliard
julliard at winehq.org
Mon May 18 08:13:13 CDT 2009
Module: wine
Branch: master
Commit: 3d5f1edff5330a028c9f63547090b2d72a567433
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d5f1edff5330a028c9f63547090b2d72a567433
Author: Francois Gouget <fgouget at free.fr>
Date: Sun May 17 13:31:24 2009 +0200
advapi32/tests: Replace realloc() with HeapReAlloc().
---
dlls/advapi32/tests/registry.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index a3d9f30..47e76b2 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -52,7 +52,11 @@ static char *get_temp_buffer( int size )
UINT 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