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
f4b33637
Commit
f4b33637
authored
May 17, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
May 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Flush the writer in WsWriteText.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6938fec4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
writer.c
dlls/webservices/writer.c
+9
-3
No files found.
dlls/webservices/writer.c
View file @
f4b33637
...
...
@@ -861,6 +861,13 @@ HRESULT WINAPI WsWriteEndCData( WS_XML_WRITER *handle, WS_ERROR *error )
return
S_OK
;
}
/* flush current start element if necessary */
static
HRESULT
write_flush
(
struct
writer
*
writer
)
{
if
(
writer
->
state
==
WRITER_STATE_STARTELEMENT
)
return
write_endstartelement
(
writer
);
return
S_OK
;
}
static
HRESULT
write_add_element_node
(
struct
writer
*
writer
,
const
WS_XML_STRING
*
prefix
,
const
WS_XML_STRING
*
localname
,
const
WS_XML_STRING
*
ns
)
{
...
...
@@ -868,9 +875,7 @@ static HRESULT write_add_element_node( struct writer *writer, const WS_XML_STRIN
WS_XML_ELEMENT_NODE
*
elem
;
HRESULT
hr
;
/* flush current start element if necessary */
if
(
writer
->
state
==
WRITER_STATE_STARTELEMENT
&&
((
hr
=
write_endstartelement
(
writer
))
!=
S_OK
))
return
hr
;
if
((
hr
=
write_flush
(
writer
))
!=
S_OK
)
return
hr
;
if
(
!
prefix
&&
node_type
(
writer
->
current
)
==
WS_XML_NODE_TYPE_ELEMENT
)
prefix
=
writer
->
current
->
hdr
.
prefix
;
...
...
@@ -950,6 +955,7 @@ HRESULT WINAPI WsWriteText( WS_XML_WRITER *handle, const WS_XML_TEXT *text, WS_E
}
else
{
if
((
hr
=
write_flush
(
writer
))
!=
S_OK
)
return
hr
;
if
((
hr
=
write_grow_buffer
(
writer
,
src
->
value
.
length
))
!=
S_OK
)
return
hr
;
write_bytes
(
writer
,
src
->
value
.
bytes
,
src
->
value
.
length
);
}
...
...
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