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
9554dfb1
Commit
9554dfb1
authored
Aug 21, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix a warning in DTD dumping code on recent libxml2 versions.
parent
8c0796c4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
3 deletions
+47
-3
node.c
dlls/msxml3/node.c
+47
-3
No files found.
dlls/msxml3/node.c
View file @
9554dfb1
...
...
@@ -896,6 +896,50 @@ HRESULT node_get_xml(xmlnode *This, BOOL ensure_eol, BSTR *ret)
return
*
ret
?
S_OK
:
E_OUTOFMEMORY
;
}
/* duplicates xmlBufferWriteQuotedString() logic */
static
void
xml_write_quotedstring
(
xmlOutputBufferPtr
buf
,
const
xmlChar
*
string
)
{
const
xmlChar
*
cur
,
*
base
;
if
(
xmlStrchr
(
string
,
'\"'
))
{
if
(
xmlStrchr
(
string
,
'\''
))
{
xmlOutputBufferWrite
(
buf
,
1
,
"
\"
"
);
base
=
cur
=
string
;
while
(
*
cur
)
{
if
(
*
cur
==
'"'
)
{
if
(
base
!=
cur
)
xmlOutputBufferWrite
(
buf
,
cur
-
base
,
(
const
char
*
)
base
);
xmlOutputBufferWrite
(
buf
,
6
,
"""
);
cur
++
;
base
=
cur
;
}
else
cur
++
;
}
if
(
base
!=
cur
)
xmlOutputBufferWrite
(
buf
,
cur
-
base
,
(
const
char
*
)
base
);
xmlOutputBufferWrite
(
buf
,
1
,
"
\"
"
);
}
else
{
xmlOutputBufferWrite
(
buf
,
1
,
"
\'
"
);
xmlOutputBufferWriteString
(
buf
,
(
const
char
*
)
string
);
xmlOutputBufferWrite
(
buf
,
1
,
"
\'
"
);
}
}
else
{
xmlOutputBufferWrite
(
buf
,
1
,
"
\"
"
);
xmlOutputBufferWriteString
(
buf
,
(
const
char
*
)
string
);
xmlOutputBufferWrite
(
buf
,
1
,
"
\"
"
);
}
}
static
void
htmldtd_dumpcontent
(
xmlOutputBufferPtr
buf
,
xmlDocPtr
doc
)
{
xmlDtdPtr
cur
=
doc
->
intSubset
;
...
...
@@ -905,17 +949,17 @@ static void htmldtd_dumpcontent(xmlOutputBufferPtr buf, xmlDocPtr doc)
if
(
cur
->
ExternalID
)
{
xmlOutputBufferWriteString
(
buf
,
" PUBLIC "
);
xml
BufferWriteQuotedString
(
buf
->
buffer
,
cur
->
ExternalID
);
xml
_write_quotedstring
(
buf
,
cur
->
ExternalID
);
if
(
cur
->
SystemID
)
{
xmlOutputBufferWriteString
(
buf
,
" "
);
xml
BufferWriteQuotedString
(
buf
->
buffer
,
cur
->
SystemID
);
xml
_write_quotedstring
(
buf
,
cur
->
SystemID
);
}
}
else
if
(
cur
->
SystemID
)
{
xmlOutputBufferWriteString
(
buf
,
" SYSTEM "
);
xml
BufferWriteQuotedString
(
buf
->
buffer
,
cur
->
SystemID
);
xml
_write_quotedstring
(
buf
,
cur
->
SystemID
);
}
xmlOutputBufferWriteString
(
buf
,
">
\n
"
);
}
...
...
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