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:
parent
63b8da2ba2
commit
953eea35cb
|
@ -644,7 +644,10 @@ HRESULT WINAPI WsAcceptChannel( WS_LISTENER *handle, WS_CHANNEL *channel_handle,
|
|||
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
|
||||
{
|
||||
wait = listener->wait;
|
||||
|
|
Loading…
Reference in New Issue