diff --git a/dlls/webservices/webservices.spec b/dlls/webservices/webservices.spec index c92588b5938..81897687ccd 100644 --- a/dlls/webservices/webservices.spec +++ b/dlls/webservices/webservices.spec @@ -171,7 +171,7 @@ @ stub WsWriteChars @ stub WsWriteCharsUtf8 @ stub WsWriteElement -@ stub WsWriteEndAttribute +@ stdcall WsWriteEndAttribute(ptr ptr) @ stub WsWriteEndCData @ stdcall WsWriteEndElement(ptr ptr) @ stdcall WsWriteEndStartElement(ptr ptr) diff --git a/dlls/webservices/writer.c b/dlls/webservices/writer.c index a9ff7611a30..59a2859160f 100644 --- a/dlls/webservices/writer.c +++ b/dlls/webservices/writer.c @@ -565,6 +565,23 @@ static HRESULT write_endelement( struct writer *writer ) return S_OK; } +/************************************************************************** + * WsWriteEndAttribute [webservices.@] + */ +HRESULT WINAPI WsWriteEndAttribute( WS_XML_WRITER *handle, WS_ERROR *error ) +{ + struct writer *writer = (struct writer *)handle; + + TRACE( "%p %p\n", handle, error ); + if (error) FIXME( "ignoring error parameter\n" ); + + if (!writer) return E_INVALIDARG; + if (writer->state != WRITER_STATE_STARTATTRIBUTE) return WS_E_INVALID_OPERATION; + + writer->state = WRITER_STATE_STARTELEMENT; + return S_OK; +} + /************************************************************************** * WsWriteEndElement [webservices.@] */