Sebastian Lackner : webservices: Correctly grow buffer size in receive_message.

Alexandre Julliard julliard at winehq.org
Thu Sep 29 10:17:12 CDT 2016


Module: wine
Branch: master
Commit: cece771b58d08c8b0a2b51d4dea9555622727c2b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cece771b58d08c8b0a2b51d4dea9555622727c2b

Author: Sebastian Lackner <sebastian at 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 at fds-team.de>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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 );




More information about the wine-cvs mailing list