[2/2] webservices: Correctly grow buffer size in receive_message.
Sebastian Lackner
sebastian at fds-team.de
Wed Sep 28 11:45:20 CDT 2016
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
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 );
--
2.9.0
More information about the wine-patches
mailing list