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
44d850c2
Commit
44d850c2
authored
Jan 21, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Attributes inherit the prefix from their element.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4f0b9122
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
writer.c
dlls/webservices/writer.c
+7
-3
No files found.
dlls/webservices/writer.c
View file @
44d850c2
...
...
@@ -454,20 +454,24 @@ static HRESULT write_attribute( struct writer *writer, WS_XML_ATTRIBUTE *attr )
{
WS_XML_UTF8_TEXT
*
text
=
(
WS_XML_UTF8_TEXT
*
)
attr
->
value
;
unsigned
char
quote
=
attr
->
singleQuote
?
'\''
:
'"'
;
const
WS_XML_STRING
*
prefix
;
ULONG
size
;
HRESULT
hr
;
if
(
attr
->
prefix
)
prefix
=
attr
->
prefix
;
else
prefix
=
writer
->
current
->
hdr
.
prefix
;
/* ' prefix:attr="value"' */
size
=
attr
->
localName
->
length
+
4
/* ' =""' */
;
if
(
attr
->
prefix
)
size
+=
attr
->
prefix
->
length
+
1
/* ':' */
;
if
(
prefix
)
size
+=
prefix
->
length
+
1
/* ':' */
;
if
(
text
)
size
+=
text
->
value
.
length
;
if
((
hr
=
write_grow_buffer
(
writer
,
size
))
!=
S_OK
)
return
hr
;
write_char
(
writer
,
' '
);
if
(
attr
->
prefix
)
if
(
prefix
)
{
write_bytes
(
writer
,
attr
->
prefix
->
bytes
,
attr
->
prefix
->
length
);
write_bytes
(
writer
,
prefix
->
bytes
,
prefix
->
length
);
write_char
(
writer
,
':'
);
}
write_bytes
(
writer
,
attr
->
localName
->
bytes
,
attr
->
localName
->
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