Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
45ded33b
Commit
45ded33b
authored
Oct 09, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Implement WsReadEndElement.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bac2d5c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
1 deletion
+44
-1
reader.c
dlls/webservices/reader.c
+43
-0
webservices.spec
dlls/webservices/webservices.spec
+1
-1
No files found.
dlls/webservices/reader.c
View file @
45ded33b
...
...
@@ -833,6 +833,49 @@ static HRESULT read_to_startelement( struct reader *reader, BOOL *found )
return
hr
;
}
static
HRESULT
read_endelement
(
struct
reader
*
reader
)
{
struct
node
*
node
;
unsigned
int
ch
,
skip
;
if
(
reader
->
state
!=
READER_STATE_TEXT
)
return
WS_E_INVALID_FORMAT
;
if
(
read_cmp
(
reader
,
"</"
,
2
))
return
WS_E_INVALID_FORMAT
;
read_skip
(
reader
,
2
);
for
(;;)
{
if
(
!
(
ch
=
read_utf8_char
(
reader
,
&
skip
)))
return
WS_E_INVALID_FORMAT
;
if
(
ch
==
'>'
)
{
read_skip
(
reader
,
1
);
break
;
}
if
(
!
read_isnamechar
(
ch
))
return
WS_E_INVALID_FORMAT
;
read_skip
(
reader
,
skip
);
}
if
(
!
(
node
=
alloc_node
(
WS_XML_NODE_TYPE_END_ELEMENT
)))
return
E_OUTOFMEMORY
;
list_add_after
(
&
reader
->
current
->
entry
,
&
node
->
entry
);
reader
->
current
=
node
;
reader
->
state
=
READER_STATE_ENDELEMENT
;
return
S_OK
;
}
/**************************************************************************
* WsReadEndElement [webservices.@]
*/
HRESULT
WINAPI
WsReadEndElement
(
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
;
return
read_endelement
(
reader
);
}
/**************************************************************************
* WsReadStartElement [webservices.@]
*/
...
...
dlls/webservices/webservices.spec
View file @
45ded33b
...
...
@@ -109,7 +109,7 @@
@ stub WsReadCharsUtf8
@ stub WsReadElement
@ stub WsReadEndAttribute
@ st
ub WsReadEndElement
@ st
dcall WsReadEndElement(ptr ptr)
@ stub WsReadEndpointAddressExtension
@ stub WsReadEnvelopeEnd
@ stub WsReadEnvelopeStart
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment