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
b282572e
Commit
b282572e
authored
Nov 29, 2008
by
Michael Karcher
Committed by
Alexandre Julliard
Dec 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Move attach_xmlnode.c to domdoc.c.
parent
a6594da4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
16 deletions
+14
-16
domdoc.c
dlls/msxml3/domdoc.c
+14
-0
msxml_private.h
dlls/msxml3/msxml_private.h
+0
-2
node.c
dlls/msxml3/node.c
+0
-14
No files found.
dlls/msxml3/domdoc.c
View file @
b282572e
...
...
@@ -209,6 +209,20 @@ HRESULT xmldoc_remove_orphan(xmlDocPtr doc, xmlNodePtr node)
return
S_FALSE
;
}
static
void
attach_xmlnode
(
IXMLDOMNode
*
node
,
xmlNodePtr
xml
)
{
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
node
);
if
(
This
->
node
)
xmldoc_release
(
This
->
node
->
doc
);
This
->
node
=
xml
;
if
(
This
->
node
)
xmldoc_add_ref
(
This
->
node
->
doc
);
return
;
}
static
inline
domdoc
*
impl_from_IXMLDOMDocument2
(
IXMLDOMDocument2
*
iface
)
{
return
(
domdoc
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
domdoc
,
lpVtbl
));
...
...
dlls/msxml3/msxml_private.h
View file @
b282572e
...
...
@@ -54,8 +54,6 @@ extern IUnknown *create_doc_entity_ref( xmlNodePtr entity );
extern
HRESULT
queryresult_create
(
xmlNodePtr
,
LPWSTR
,
IXMLDOMNodeList
**
);
extern
void
attach_xmlnode
(
IXMLDOMNode
*
node
,
xmlNodePtr
xmlnode
);
/* data accessors */
xmlNodePtr
xmlNodePtr_from_domnode
(
IXMLDOMNode
*
iface
,
xmlElementType
type
);
...
...
dlls/msxml3/node.c
View file @
b282572e
...
...
@@ -85,20 +85,6 @@ xmlNodePtr xmlNodePtr_from_domnode( IXMLDOMNode *iface, xmlElementType type )
return
This
->
node
;
}
void
attach_xmlnode
(
IXMLDOMNode
*
node
,
xmlNodePtr
xml
)
{
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
node
);
if
(
This
->
node
)
xmldoc_release
(
This
->
node
->
doc
);
This
->
node
=
xml
;
if
(
This
->
node
)
xmldoc_add_ref
(
This
->
node
->
doc
);
return
;
}
static
HRESULT
WINAPI
xmlnode_QueryInterface
(
IXMLDOMNode
*
iface
,
REFIID
riid
,
...
...
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