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
29b1c115
Commit
29b1c115
authored
Nov 10, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Parse self-closing tags.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e3859dff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
reader.c
dlls/webservices/reader.c
+15
-5
No files found.
dlls/webservices/reader.c
View file @
29b1c115
...
...
@@ -379,6 +379,7 @@ enum reader_state
READER_STATE_INITIAL
,
READER_STATE_BOF
,
READER_STATE_STARTELEMENT
,
READER_STATE_STARTENDELEMENT
,
READER_STATE_TEXT
,
READER_STATE_ENDELEMENT
,
READER_STATE_COMMENT
,
...
...
@@ -928,7 +929,7 @@ static HRESULT read_element( struct reader *reader )
for
(;;)
{
read_skip_whitespace
(
reader
);
if
(
!
read_cmp
(
reader
,
">"
,
1
))
break
;
if
(
!
read_cmp
(
reader
,
">"
,
1
)
||
!
read_cmp
(
reader
,
"/>"
,
2
)
)
break
;
if
((
hr
=
read_attribute
(
reader
,
&
attr
))
!=
S_OK
)
goto
error
;
if
((
hr
=
append_attribute
(
elem
,
attr
))
!=
S_OK
)
{
...
...
@@ -938,16 +939,24 @@ static HRESULT read_element( struct reader *reader )
}
read_skip_whitespace
(
reader
);
if
(
read_cmp
(
reader
,
">"
,
1
))
if
(
read_cmp
(
reader
,
">"
,
1
)
&&
read_cmp
(
reader
,
"/>"
,
2
)
)
{
hr
=
WS_E_INVALID_FORMAT
;
goto
error
;
}
read_insert_node
(
reader
,
reader
->
current
,
node
);
read_skip
(
reader
,
1
);
reader
->
state
=
READER_STATE_STARTELEMENT
;
if
(
!
read_cmp
(
reader
,
"/>"
,
2
))
{
read_skip
(
reader
,
2
);
reader
->
current
=
reader
->
current
->
parent
;
reader
->
state
=
READER_STATE_STARTENDELEMENT
;
}
else
{
read_skip
(
reader
,
1
);
reader
->
state
=
READER_STATE_STARTELEMENT
;
}
return
S_OK
;
error:
...
...
@@ -1056,6 +1065,7 @@ static HRESULT read_endelement( struct reader *reader )
{
case
READER_STATE_TEXT
:
case
READER_STATE_STARTELEMENT
:
case
READER_STATE_STARTENDELEMENT
:
break
;
default:
return
WS_E_INVALID_FORMAT
;
...
...
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