webservices: Implement WsWriteEndStartElement.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e9435db25f
commit
f236df36fc
|
@ -174,7 +174,7 @@
|
|||
@ stub WsWriteEndAttribute
|
||||
@ stub WsWriteEndCData
|
||||
@ stdcall WsWriteEndElement(ptr ptr)
|
||||
@ stub WsWriteEndStartElement
|
||||
@ stdcall WsWriteEndStartElement(ptr ptr)
|
||||
@ stub WsWriteEnvelopeEnd
|
||||
@ stub WsWriteEnvelopeStart
|
||||
@ stub WsWriteMessageEnd
|
||||
|
|
|
@ -610,6 +610,28 @@ HRESULT WINAPI WsWriteEndElement( WS_XML_WRITER *handle, WS_ERROR *error )
|
|||
return WS_E_INVALID_OPERATION;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* WsWriteEndStartElement [webservices.@]
|
||||
*/
|
||||
HRESULT WINAPI WsWriteEndStartElement( WS_XML_WRITER *handle, WS_ERROR *error )
|
||||
{
|
||||
struct writer *writer = (struct writer *)handle;
|
||||
HRESULT hr;
|
||||
|
||||
TRACE( "%p %p\n", handle, error );
|
||||
if (error) FIXME( "ignoring error parameter\n" );
|
||||
|
||||
if (!writer) return E_INVALIDARG;
|
||||
if (writer->state != WRITER_STATE_STARTELEMENT) return WS_E_INVALID_OPERATION;
|
||||
|
||||
if ((hr = write_startelement( writer )) != S_OK) return hr;
|
||||
if ((hr = write_grow_buffer( writer, 1 )) != S_OK) return hr;
|
||||
write_char( writer, '>' );
|
||||
|
||||
writer->state = WRITER_STATE_ENDSTARTELEMENT;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* WsWriteStartElement [webservices.@]
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue