From 953eea35cb5968ff520453f3dc3e3266cf26c56f Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Tue, 4 Dec 2018 13:57:30 +0100 Subject: [PATCH] webservices: Allow calling WsAcceptChannel again with the same channel handle. Signed-off-by: Hans Leidekker Signed-off-by: Alexandre Julliard --- dlls/webservices/listener.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/webservices/listener.c b/dlls/webservices/listener.c index e06b39447fb..de1abb557ca 100644 --- a/dlls/webservices/listener.c +++ b/dlls/webservices/listener.c @@ -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;