webservices: Return WS_S_END when we receive an end frame.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2021-05-19 09:32:14 +02:00 committed by Alexandre Julliard
parent bfefd0d2a3
commit a17c5a0bb1
1 changed files with 1 additions and 0 deletions

View File

@ -2050,6 +2050,7 @@ static HRESULT receive_sized_envelope( struct channel *channel )
HRESULT hr;
if ((hr = receive_bytes( channel, &type, 1 )) != S_OK) return hr;
if (type == FRAME_RECORD_TYPE_END) return WS_S_END;
if (type != FRAME_RECORD_TYPE_SIZED_ENVELOPE) return WS_E_INVALID_FORMAT;
if ((hr = receive_size( channel, &size )) != S_OK) return hr;
if ((hr = receive_message_sized( channel, size )) != S_OK) return hr;