Commit 953eea35 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent 63b8da2b
...@@ -644,7 +644,10 @@ HRESULT WINAPI WsAcceptChannel( WS_LISTENER *handle, WS_CHANNEL *channel_handle, ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment