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
d2ecd869
Commit
d2ecd869
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_ROOT_ELEMENT in the reader.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fe65b87d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
reader.c
dlls/webservices/reader.c
+29
-0
No files found.
dlls/webservices/reader.c
View file @
d2ecd869
...
...
@@ -1319,6 +1319,31 @@ HRESULT WINAPI WsReadToStartElement( WS_XML_READER *handle, const WS_XML_STRING
return
read_to_startelement
(
reader
,
found
);
}
static
BOOL
move_to_root_element
(
struct
reader
*
reader
)
{
struct
list
*
ptr
;
struct
node
*
node
;
if
(
!
(
ptr
=
list_head
(
&
reader
->
root
->
children
)))
return
FALSE
;
node
=
LIST_ENTRY
(
ptr
,
struct
node
,
entry
);
if
(
node
->
hdr
.
node
.
nodeType
==
WS_XML_NODE_TYPE_ELEMENT
)
{
reader
->
current
=
node
;
return
TRUE
;
}
while
((
ptr
=
list_next
(
&
reader
->
root
->
children
,
&
node
->
entry
)))
{
struct
node
*
next
=
LIST_ENTRY
(
ptr
,
struct
node
,
entry
);
if
(
next
->
hdr
.
node
.
nodeType
==
WS_XML_NODE_TYPE_ELEMENT
)
{
reader
->
current
=
next
;
return
TRUE
;
}
node
=
next
;
}
return
FALSE
;
}
static
HRESULT
read_move_to
(
struct
reader
*
reader
,
WS_MOVE_TO
move
,
BOOL
*
found
)
{
struct
list
*
ptr
;
...
...
@@ -1332,6 +1357,10 @@ static HRESULT read_move_to( struct reader *reader, WS_MOVE_TO move, BOOL *found
}
switch
(
move
)
{
case
WS_MOVE_TO_ROOT_ELEMENT
:
success
=
move_to_root_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