webservices: Allow calling WsAcceptChannel again with the same channel handle.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2018-12-04 13:57:30 +01:00 committed by Alexandre Julliard
parent 63b8da2ba2
commit 953eea35cb
1 changed files with 4 additions and 1 deletions

View File

@ -644,7 +644,10 @@ HRESULT WINAPI WsAcceptChannel( WS_LISTENER *handle, WS_CHANNEL *channel_handle,
return E_INVALIDARG; return E_INVALIDARG;
} }
if (listener->state != WS_LISTENER_STATE_OPEN || listener->channel) hr = WS_E_INVALID_OPERATION; if (listener->state != WS_LISTENER_STATE_OPEN || (listener->channel && listener->channel != channel_handle))
{
hr = WS_E_INVALID_OPERATION;
}
else else
{ {
wait = listener->wait; wait = listener->wait;