Hans Leidekker : webservices: Write the envelope in WsInitializeMessage.

Alexandre Julliard julliard at winehq.org
Tue Aug 16 10:41:00 CDT 2016


Module: wine
Branch: master
Commit: 202bc2a77fcdc75a57260c15d0f36511c7f97833
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=202bc2a77fcdc75a57260c15d0f36511c7f97833

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Aug 16 12:30:32 2016 +0200

webservices: Write the envelope in WsInitializeMessage.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/webservices/msg.c | 48 ++++++++++++++++++++++++------------------------
 1 file changed, 24 insertions(+), 24 deletions(-)

diff --git a/dlls/webservices/msg.c b/dlls/webservices/msg.c
index ecbc31d..904d490 100644
--- a/dlls/webservices/msg.c
+++ b/dlls/webservices/msg.c
@@ -198,30 +198,6 @@ HRESULT WINAPI WsCreateMessageForChannel( WS_CHANNEL *channel_handle, const WS_M
 }
 
 /**************************************************************************
- *          WsInitializeMessage		[webservices.@]
- */
-HRESULT WINAPI WsInitializeMessage( WS_MESSAGE *handle, WS_MESSAGE_INITIALIZATION init,
-                                    WS_MESSAGE *src_handle, WS_ERROR *error )
-{
-    struct msg *msg = (struct msg *)handle;
-
-    TRACE( "%p %u %p %p\n", handle, init, src_handle, error );
-    if (error) FIXME( "ignoring error parameter\n" );
-    if (src_handle)
-    {
-        FIXME( "src message not supported\n" );
-        return E_NOTIMPL;
-    }
-
-    if (!handle || init > WS_FAULT_MESSAGE) return E_INVALIDARG;
-    if (msg->state >= WS_MESSAGE_STATE_INITIALIZED) return WS_E_INVALID_OPERATION;
-
-    msg->init  = init;
-    msg->state = WS_MESSAGE_STATE_INITIALIZED;
-    return S_OK;
-}
-
-/**************************************************************************
  *          WsFreeMessage		[webservices.@]
  */
 void WINAPI WsFreeMessage( WS_MESSAGE *handle )
@@ -555,6 +531,30 @@ HRESULT WINAPI WsWriteBody( WS_MESSAGE *handle, const WS_ELEMENT_DESCRIPTION *de
     return hr;
 }
 
+/**************************************************************************
+ *          WsInitializeMessage		[webservices.@]
+ */
+HRESULT WINAPI WsInitializeMessage( WS_MESSAGE *handle, WS_MESSAGE_INITIALIZATION init,
+                                    WS_MESSAGE *src_handle, WS_ERROR *error )
+{
+    struct msg *msg = (struct msg *)handle;
+
+    TRACE( "%p %u %p %p\n", handle, init, src_handle, error );
+    if (error) FIXME( "ignoring error parameter\n" );
+    if (src_handle)
+    {
+        FIXME( "src message not supported\n" );
+        return E_NOTIMPL;
+    }
+
+    if (!handle || init > WS_FAULT_MESSAGE) return E_INVALIDARG;
+    if (msg->state >= WS_MESSAGE_STATE_INITIALIZED) return WS_E_INVALID_OPERATION;
+
+    msg->init  = init;
+    msg->state = WS_MESSAGE_STATE_INITIALIZED;
+    return write_envelope( msg );
+}
+
 static inline void set_utf8_text( WS_XML_UTF8_TEXT *text, BYTE *bytes, ULONG len )
 {
     text->text.textType = WS_XML_TEXT_TYPE_UTF8;




More information about the wine-cvs mailing list