[PATCH 5/7] webservices: Allow calling WsAcceptChannel again with the same channel handle.

Hans Leidekker hans at codeweavers.com
Tue Dec 4 06:57:30 CST 2018


Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
 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 e06b39447f..de1abb557c 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;
-- 
2.11.0




More information about the wine-devel mailing list