Author: cwittich
Date: Sun Jun 7 14:58:10 2009
New Revision: 41328
URL:
http://svn.reactos.org/svn/reactos?rev=41328&view=rev
Log:
sync advapi32_winetest with wine 1.1.23
Modified:
trunk/rostests/winetests/advapi32/registry.c
Modified: trunk/rostests/winetests/advapi32/registry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/advapi32/regist…
==============================================================================
--- trunk/rostests/winetests/advapi32/registry.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/advapi32/registry.c [iso-8859-1] Sun Jun 7 14:58:10 2009
@@ -52,7 +52,11 @@
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;
}