From 281ab9c777bb97ac316d14cd8f7273ae2705b1c2 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sun, 7 Jun 2009 10:58:10 +0000 Subject: [PATCH] sync advapi32_winetest with wine 1.1.23 svn path=/trunk/; revision=41328 --- rostests/winetests/advapi32/registry.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rostests/winetests/advapi32/registry.c b/rostests/winetests/advapi32/registry.c index a3d9f300672..47e76b28634 100644 --- a/rostests/winetests/advapi32/registry.c +++ b/rostests/winetests/advapi32/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; }