Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e7ff1019
Commit
e7ff1019
authored
Oct 16, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Update orphaned list in put_documentElement.
parent
dee8657b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
domdoc.c
dlls/msxml3/domdoc.c
+10
-1
No files found.
dlls/msxml3/domdoc.c
View file @
e7ff1019
...
@@ -922,6 +922,7 @@ static HRESULT WINAPI domdoc_put_documentElement(
...
@@ -922,6 +922,7 @@ static HRESULT WINAPI domdoc_put_documentElement(
{
{
domdoc
*
This
=
impl_from_IXMLDOMDocument2
(
iface
);
domdoc
*
This
=
impl_from_IXMLDOMDocument2
(
iface
);
IXMLDOMNode
*
elementNode
;
IXMLDOMNode
*
elementNode
;
xmlNodePtr
oldRoot
;
xmlnode
*
xmlNode
;
xmlnode
*
xmlNode
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -932,9 +933,17 @@ static HRESULT WINAPI domdoc_put_documentElement(
...
@@ -932,9 +933,17 @@ static HRESULT WINAPI domdoc_put_documentElement(
return
hr
;
return
hr
;
xmlNode
=
impl_from_IXMLDOMNode
(
elementNode
);
xmlNode
=
impl_from_IXMLDOMNode
(
elementNode
);
xmlDocSetRootElement
(
get_doc
(
This
),
xmlNode
->
node
);
if
(
!
xmlNode
->
node
->
parent
)
if
(
xmldoc_remove_orphan
(
xmlNode
->
node
->
doc
,
xmlNode
->
node
)
!=
S_OK
)
WARN
(
"%p is not an orphan of %p
\n
"
,
xmlNode
->
node
->
doc
,
xmlNode
->
node
);
oldRoot
=
xmlDocSetRootElement
(
get_doc
(
This
),
xmlNode
->
node
);
IXMLDOMNode_Release
(
elementNode
);
IXMLDOMNode_Release
(
elementNode
);
if
(
oldRoot
)
xmldoc_add_orphan
(
oldRoot
->
doc
,
oldRoot
);
return
S_OK
;
return
S_OK
;
}
}
...
...
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