Sebastian Lackner : webservices: Correctly grow buffer size in receive_message.
Module: wine Branch: master Commit: cece771b58d08c8b0a2b51d4dea9555622727c2b URL: http://source.winehq.org/git/wine.git/?a=commit;h=cece771b58d08c8b0a2b51d4de... Author: Sebastian Lackner <sebastian(a)fds-team.de> Date: Wed Sep 28 18:45:20 2016 +0200 webservices: Correctly grow buffer size in receive_message. Signed-off-by: Sebastian Lackner <sebastian(a)fds-team.de> Signed-off-by: Hans Leidekker <hans(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/webservices/channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/webservices/channel.c b/dlls/webservices/channel.c index e7fb52b..445d877 100644 --- a/dlls/webservices/channel.c +++ b/dlls/webservices/channel.c @@ -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 );
participants (1)
-
Alexandre Julliard