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
57a78706
Commit
57a78706
authored
Feb 10, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Implement WS_MOVE_TO_PARENT_ELEMENT in the reader.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
88e53782
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
reader.c
dlls/webservices/reader.c
+17
-0
No files found.
dlls/webservices/reader.c
View file @
57a78706
...
...
@@ -1424,6 +1424,19 @@ static BOOL move_to_end_element( struct reader *reader )
return
FALSE
;
}
static
BOOL
move_to_parent_element
(
struct
reader
*
reader
)
{
struct
node
*
parent
=
reader
->
current
->
parent
;
if
(
parent
&&
(
parent
->
hdr
.
node
.
nodeType
==
WS_XML_NODE_TYPE_ELEMENT
||
parent
->
hdr
.
node
.
nodeType
==
WS_XML_NODE_TYPE_BOF
))
{
reader
->
current
=
parent
;
return
TRUE
;
}
return
FALSE
;
}
static
HRESULT
read_move_to
(
struct
reader
*
reader
,
WS_MOVE_TO
move
,
BOOL
*
found
)
{
struct
list
*
ptr
;
...
...
@@ -1457,6 +1470,10 @@ static HRESULT read_move_to( struct reader *reader, WS_MOVE_TO move, BOOL *found
success
=
move_to_end_element
(
reader
);
break
;
case
WS_MOVE_TO_PARENT_ELEMENT
:
success
=
move_to_parent_element
(
reader
);
break
;
case
WS_MOVE_TO_FIRST_NODE
:
if
((
ptr
=
list_head
(
&
reader
->
current
->
parent
->
children
)))
{
...
...
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