Shaun Ren : webservices: Address the request message in WsCall.

Alexandre Julliard julliard at winehq.org
Fri Aug 5 14:42:32 CDT 2022


Module: wine
Branch: master
Commit: a5359f36abef28646979849664207e3a7c5d6bf1
URL:    https://gitlab.winehq.org/wine/wine/-/commit/a5359f36abef28646979849664207e3a7c5d6bf1

Author: Shaun Ren <sren at codeweavers.com>
Date:   Wed Aug  3 19:32:58 2022 -0400

webservices: Address the request message in WsCall.

Signed-off-by: Shaun Ren <sren at codeweavers.com>

---

 dlls/webservices/channel.c             | 6 ++++++
 dlls/webservices/proxy.c               | 1 +
 dlls/webservices/webservices_private.h | 1 +
 3 files changed, 8 insertions(+)

diff --git a/dlls/webservices/channel.c b/dlls/webservices/channel.c
index 4c9f9c4ccff..968110d56bd 100644
--- a/dlls/webservices/channel.c
+++ b/dlls/webservices/channel.c
@@ -3041,3 +3041,9 @@ HRESULT channel_accept_udp( SOCKET socket, HANDLE wait, HANDLE cancel, WS_CHANNE
     LeaveCriticalSection( &channel->cs );
     return hr;
 }
+
+HRESULT channel_address_message( WS_CHANNEL *handle, WS_MESSAGE *msg )
+{
+    struct channel *channel = (struct channel *)handle;
+    return WsAddressMessage( msg, &channel->addr, NULL );
+}
diff --git a/dlls/webservices/proxy.c b/dlls/webservices/proxy.c
index 09f6e2bee00..3a8baade8dd 100644
--- a/dlls/webservices/proxy.c
+++ b/dlls/webservices/proxy.c
@@ -426,6 +426,7 @@ static HRESULT send_message( WS_CHANNEL *channel, WS_MESSAGE *msg, WS_MESSAGE_DE
     WS_XML_WRITER *writer;
     HRESULT hr;
 
+    if ((hr = channel_address_message( channel, msg )) != S_OK) return hr;
     if ((hr = message_set_action( msg, desc->action )) != S_OK) return hr;
     if ((hr = WsCreateWriter( NULL, 0, &writer, NULL )) != S_OK) return hr;
     if ((hr = set_output( writer )) != S_OK) goto done;
diff --git a/dlls/webservices/webservices_private.h b/dlls/webservices/webservices_private.h
index d7f62c3d8a6..a2f89d47d7a 100644
--- a/dlls/webservices/webservices_private.h
+++ b/dlls/webservices/webservices_private.h
@@ -168,6 +168,7 @@ HRESULT message_map_http_response_headers( WS_MESSAGE *, HINTERNET, const WS_HTT
 HRESULT channel_send_message( WS_CHANNEL *, WS_MESSAGE * ) DECLSPEC_HIDDEN;
 HRESULT channel_receive_message( WS_CHANNEL *, WS_MESSAGE * ) DECLSPEC_HIDDEN;
 HRESULT channel_get_reader( WS_CHANNEL *, WS_XML_READER ** ) DECLSPEC_HIDDEN;
+HRESULT channel_address_message( WS_CHANNEL *, WS_MESSAGE * ) DECLSPEC_HIDDEN;
 
 HRESULT parse_url( const WS_STRING *, WS_URL_SCHEME_TYPE *, WCHAR **, USHORT * ) DECLSPEC_HIDDEN;
 




More information about the wine-cvs mailing list