webservices: Correctly grow buffer size in receive_message.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Sebastian Lackner 2016-09-28 18:45:20 +02:00 committed by Alexandre Julliard
parent 9ef108ad6a
commit cece771b58
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ static HRESULT receive_message( struct channel *channel, ULONG max_len, char **r
if (*ret_len + len > size)
{
char *tmp;
DWORD new_size = max( len, size * 2 );
DWORD new_size = max( *ret_len + len, size * 2 );
if (!(tmp = heap_realloc( buf, new_size )))
{
heap_free( buf );