[v2 1/5] webservices: Implement WsReadEndAttribute.

Hans Leidekker hans at codeweavers.com
Wed Feb 3 08:43:43 CST 2016


Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
 dlls/webservices/reader.c         | 21 ++++++++++++++++++++-
 dlls/webservices/webservices.spec |  2 +-
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/dlls/webservices/reader.c b/dlls/webservices/reader.c
index a0c32a9..08f2287 100644
--- a/dlls/webservices/reader.c
+++ b/dlls/webservices/reader.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 2015 Hans Leidekker for CodeWeavers
+ * Copyright 2015, 2016 Hans Leidekker for CodeWeavers
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -1371,6 +1371,25 @@ HRESULT WINAPI WsReadStartAttribute( WS_XML_READER *handle, ULONG index, WS_ERRO
     return S_OK;
 }
 
+/**************************************************************************
+ *          WsReadEndAttribute		[webservices.@]
+ */
+HRESULT WINAPI WsReadEndAttribute( WS_XML_READER *handle, WS_ERROR *error )
+{
+    struct reader *reader = (struct reader *)handle;
+
+    TRACE( "%p %p\n", handle, error );
+    if (error) FIXME( "ignoring error parameter\n" );
+
+    if (!reader) return E_INVALIDARG;
+
+    if (reader->state != READER_STATE_STARTATTRIBUTE)
+        return WS_E_INVALID_FORMAT;
+
+    reader->state = READER_STATE_STARTELEMENT;
+    return S_OK;
+}
+
 static WCHAR *xmltext_to_widechar( WS_HEAP *heap, const WS_XML_TEXT *text )
 {
     WCHAR *ret;
diff --git a/dlls/webservices/webservices.spec b/dlls/webservices/webservices.spec
index 062af8d..699406d 100644
--- a/dlls/webservices/webservices.spec
+++ b/dlls/webservices/webservices.spec
@@ -108,7 +108,7 @@
 @ stub WsReadChars
 @ stub WsReadCharsUtf8
 @ stub WsReadElement
-@ stub WsReadEndAttribute
+@ stdcall WsReadEndAttribute(ptr ptr)
 @ stdcall WsReadEndElement(ptr ptr)
 @ stub WsReadEndpointAddressExtension
 @ stub WsReadEnvelopeEnd
-- 
2.7.0




More information about the wine-patches mailing list