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
24d81667
Commit
24d81667
authored
Aug 19, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/domimpl: Cleanup object creation helper.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2cc7180f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
domdoc.c
dlls/msxml3/domdoc.c
+1
-3
domimpl.c
dlls/msxml3/domimpl.c
+10
-9
msxml_private.h
dlls/msxml3/msxml_private.h
+1
-1
No files found.
dlls/msxml3/domdoc.c
View file @
24d81667
...
...
@@ -1642,9 +1642,7 @@ static HRESULT WINAPI domdoc_get_implementation(
if
(
!
impl
)
return
E_INVALIDARG
;
*
impl
=
(
IXMLDOMImplementation
*
)
create_doc_Implementation
();
return
S_OK
;
return
create_dom_implementation
(
impl
);
}
static
HRESULT
WINAPI
domdoc_get_documentElement
(
...
...
dlls/msxml3/domimpl.c
View file @
24d81667
...
...
@@ -189,17 +189,18 @@ static dispex_static_data_t dimimpl_dispex = {
dimimpl_iface_tids
};
IUnknown
*
create_doc_Implementation
(
void
)
HRESULT
create_dom_implementation
(
IXMLDOMImplementation
**
ret
)
{
domimpl
*
This
;
domimpl
*
object
;
This
=
heap_alloc
(
sizeof
*
This
);
if
(
!
This
)
return
NULL
;
if
(
!
(
object
=
heap_alloc
(
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
This
->
IXMLDOMImplementation_iface
.
lpVtbl
=
&
dimimpl_vtbl
;
This
->
ref
=
1
;
init_dispex
(
&
This
->
dispex
,
(
IUnknown
*
)
&
This
->
IXMLDOMImplementation_iface
,
&
dimimpl_dispex
);
object
->
IXMLDOMImplementation_iface
.
lpVtbl
=
&
dimimpl_vtbl
;
object
->
ref
=
1
;
init_dispex
(
&
object
->
dispex
,
(
IUnknown
*
)
&
object
->
IXMLDOMImplementation_iface
,
&
dimimpl_dispex
);
return
(
IUnknown
*
)
&
This
->
IXMLDOMImplementation_iface
;
*
ret
=
&
object
->
IXMLDOMImplementation_iface
;
return
S_OK
;
}
dlls/msxml3/msxml_private.h
View file @
24d81667
...
...
@@ -180,12 +180,12 @@ extern IUnknown *create_comment( xmlNodePtr ) DECLSPEC_HIDDEN;
extern
IUnknown
*
create_cdata
(
xmlNodePtr
)
DECLSPEC_HIDDEN
;
extern
IXMLDOMNodeList
*
create_children_nodelist
(
xmlNodePtr
)
DECLSPEC_HIDDEN
;
extern
IXMLDOMNamedNodeMap
*
create_nodemap
(
xmlNodePtr
,
const
struct
nodemap_funcs
*
)
DECLSPEC_HIDDEN
;
extern
IUnknown
*
create_doc_Implementation
(
void
)
DECLSPEC_HIDDEN
;
extern
IUnknown
*
create_doc_fragment
(
xmlNodePtr
)
DECLSPEC_HIDDEN
;
extern
IUnknown
*
create_doc_entity_ref
(
xmlNodePtr
)
DECLSPEC_HIDDEN
;
extern
IUnknown
*
create_doc_type
(
xmlNodePtr
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_selection
(
xmlNodePtr
,
xmlChar
*
,
IXMLDOMNodeList
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_enumvariant
(
IUnknown
*
,
BOOL
,
const
struct
enumvariant_funcs
*
,
IEnumVARIANT
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_dom_implementation
(
IXMLDOMImplementation
**
obj
)
DECLSPEC_HIDDEN
;
/* data accessors */
xmlNodePtr
xmlNodePtr_from_domnode
(
IXMLDOMNode
*
iface
,
xmlElementType
type
)
DECLSPEC_HIDDEN
;
...
...
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