Commit 5f7372af authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

webservices: Implement WsFlushBody.

parent 953eea35
......@@ -831,6 +831,33 @@ done:
return hr;
}
/**************************************************************************
* WsFlushBody [webservices.@]
*/
HRESULT WINAPI WsFlushBody( WS_MESSAGE *handle, ULONG size, const WS_ASYNC_CONTEXT *ctx, WS_ERROR *error )
{
struct msg *msg = (struct msg *)handle;
HRESULT hr;
TRACE( "%p %u %p %p\n", handle, size, ctx, error );
if (!msg) return E_INVALIDARG;
EnterCriticalSection( &msg->cs );
if (msg->magic != MSG_MAGIC)
{
LeaveCriticalSection( &msg->cs );
return E_INVALIDARG;
}
hr = WsFlushWriter( msg->writer_body, size, ctx, error );
LeaveCriticalSection( &msg->cs );
TRACE( "returning %08x\n", hr );
return hr;
}
static BOOL match_current_element( WS_XML_READER *reader, const WS_XML_STRING *localname )
{
const WS_XML_NODE *node;
......
......@@ -46,7 +46,7 @@
@ stdcall WsFillBody(ptr long ptr ptr)
@ stdcall WsFillReader(ptr long ptr ptr)
@ stdcall WsFindAttribute(ptr ptr ptr long ptr ptr)
@ stub WsFlushBody
@ stdcall WsFlushBody(ptr long ptr ptr)
@ stdcall WsFlushWriter(ptr long ptr ptr)
@ stdcall WsFreeChannel(ptr)
@ stdcall WsFreeError(ptr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment