Hans Leidekker : webservices: Allow calling WsAcceptChannel again with the same channel handle.
Alexandre Julliard
julliard at winehq.org
Tue Dec 4 16:33:56 CST 2018
Module: wine
Branch: master
Commit: 953eea35cb5968ff520453f3dc3e3266cf26c56f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=953eea35cb5968ff520453f3dc3e3266cf26c56f
Author: Hans Leidekker <hans at codeweavers.com>
Date: Tue Dec 4 13:57:30 2018 +0100
webservices: Allow calling WsAcceptChannel again with the same channel handle.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 e06b394..de1abb5 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;
More information about the wine-cvs
mailing list