Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
2191d977
Commit
2191d977
authored
Jan 31, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Duplicate stylesheet document before passing it to libxslt.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b280c3bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
node.c
dlls/msxml3/node.c
+7
-5
No files found.
dlls/msxml3/node.c
View file @
2191d977
...
...
@@ -1320,6 +1320,7 @@ HRESULT node_transform_node_params(const xmlnode *This, IXMLDOMNode *stylesheet,
{
#ifdef SONAME_LIBXSLT
xsltStylesheetPtr
xsltSS
;
xmlDocPtr
sheet_doc
;
HRESULT
hr
=
S_OK
;
xmlnode
*
sheet
;
...
...
@@ -1331,8 +1332,9 @@ HRESULT node_transform_node_params(const xmlnode *This, IXMLDOMNode *stylesheet,
sheet
=
get_node_obj
(
stylesheet
);
if
(
!
sheet
)
return
E_FAIL
;
xsltSS
=
pxsltParseStylesheetDoc
(
sheet
->
node
->
doc
);
if
(
xsltSS
)
sheet_doc
=
xmlCopyDoc
(
sheet
->
node
->
doc
,
1
);
xsltSS
=
pxsltParseStylesheetDoc
(
sheet_doc
);
if
(
xsltSS
)
{
const
char
**
xslparams
=
NULL
;
xmlDocPtr
result
;
...
...
@@ -1377,11 +1379,11 @@ HRESULT node_transform_node_params(const xmlnode *This, IXMLDOMNode *stylesheet,
hr
=
node_transform_write_to_bstr
(
xsltSS
,
result
,
p
);
xmlFreeDoc
(
result
);
}
/* libxslt "helpfully" frees the XML document the stylesheet was
generated from, too */
xsltSS
->
doc
=
NULL
;
pxsltFreeStylesheet
(
xsltSS
);
}
else
xmlFreeDoc
(
sheet_doc
);
if
(
!*
p
)
*
p
=
SysAllocStringLen
(
NULL
,
0
);
...
...
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