mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
sync advapi32_winetest with wine 1.1.23
svn path=/trunk/; revision=41328
This commit is contained in:
parent
a4e75a5669
commit
281ab9c777
1 changed files with 5 additions and 1 deletions
|
@ -52,7 +52,11 @@ static char *get_temp_buffer( int size )
|
||||||
UINT idx;
|
UINT idx;
|
||||||
|
|
||||||
idx = ++pos % (sizeof(list)/sizeof(list[0]));
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue