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
cdc9eff5
Commit
cdc9eff5
authored
Jan 09, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Remove unused IUnknown *outer parameter from object constructors.
parent
0df819ee
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
65 additions
and
75 deletions
+65
-75
domdoc.c
dlls/msxml3/domdoc.c
+4
-4
factory.c
dlls/msxml3/factory.c
+4
-4
httprequest.c
dlls/msxml3/httprequest.c
+7
-7
msxml_private.h
dlls/msxml3/msxml_private.h
+13
-13
mxnamespace.c
dlls/msxml3/mxnamespace.c
+2
-2
mxwriter.c
dlls/msxml3/mxwriter.c
+4
-6
saxreader.c
dlls/msxml3/saxreader.c
+3
-3
schema.c
dlls/msxml3/schema.c
+4
-4
stylesheet.c
dlls/msxml3/stylesheet.c
+3
-5
xmldoc.c
dlls/msxml3/xmldoc.c
+5
-5
xmlelem.c
dlls/msxml3/xmlelem.c
+9
-9
xmlparser.c
dlls/msxml3/xmlparser.c
+2
-5
xmlview.c
dlls/msxml3/xmlview.c
+5
-8
No files found.
dlls/msxml3/domdoc.c
View file @
cdc9eff5
...
...
@@ -2626,7 +2626,7 @@ static HRESULT WINAPI domdoc_get_namespaces(
if
(
!
This
->
namespaces
)
{
hr
=
SchemaCache_create
(
This
->
properties
->
version
,
NULL
,
(
void
**
)
&
This
->
namespaces
);
hr
=
SchemaCache_create
(
This
->
properties
->
version
,
(
void
**
)
&
This
->
namespaces
);
if
(
hr
!=
S_OK
)
return
hr
;
hr
=
cache_from_doc_ns
(
This
->
namespaces
,
&
This
->
node
);
...
...
@@ -3596,12 +3596,12 @@ HRESULT get_domdoc_from_xmldoc(xmlDocPtr xmldoc, IXMLDOMDocument3 **document)
return
S_OK
;
}
HRESULT
DOMDocument_create
(
MSXML_VERSION
version
,
IUnknown
*
pUnkOuter
,
void
**
ppObj
)
HRESULT
DOMDocument_create
(
MSXML_VERSION
version
,
void
**
ppObj
)
{
xmlDocPtr
xmldoc
;
HRESULT
hr
;
TRACE
(
"(%d, %p
, %p)
\n
"
,
version
,
pUnkOuter
,
ppObj
);
TRACE
(
"(%d, %p
)
\n
"
,
version
,
ppObj
);
xmldoc
=
xmlNewDoc
(
NULL
);
if
(
!
xmldoc
)
...
...
@@ -3637,7 +3637,7 @@ IUnknown* create_domdoc( xmlNodePtr document )
#else
HRESULT
DOMDocument_create
(
MSXML_VERSION
version
,
IUnknown
*
pUnkOuter
,
void
**
ppObj
)
HRESULT
DOMDocument_create
(
MSXML_VERSION
version
,
void
**
ppObj
)
{
MESSAGE
(
"This program tried to use a DOMDocument object, but
\n
"
"libxml2 support was not present at compile time.
\n
"
);
...
...
dlls/msxml3/factory.c
View file @
cdc9eff5
...
...
@@ -47,8 +47,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msxml
);
typedef
HRESULT
(
*
ClassFactoryCreateInstanceFunc
)(
IUnknown
*
,
void
**
);
typedef
HRESULT
(
*
DOMFactoryCreateInstanceFunc
)(
MSXML_VERSION
,
IUnknown
*
,
void
**
);
typedef
HRESULT
(
*
ClassFactoryCreateInstanceFunc
)(
void
**
);
typedef
HRESULT
(
*
DOMFactoryCreateInstanceFunc
)(
MSXML_VERSION
,
void
**
);
struct
clsid_version_t
{
...
...
@@ -175,7 +175,7 @@ static HRESULT WINAPI ClassFactory_CreateInstance(
if
(
pOuter
)
return
CLASS_E_NOAGGREGATION
;
r
=
This
->
pCreateInstance
(
pOuter
,
(
void
**
)
&
punk
);
r
=
This
->
pCreateInstance
(
(
void
**
)
&
punk
);
if
(
FAILED
(
r
))
return
r
;
...
...
@@ -233,7 +233,7 @@ static HRESULT WINAPI DOMClassFactory_CreateInstance(
if
(
pOuter
)
return
CLASS_E_NOAGGREGATION
;
r
=
This
->
pCreateInstance
(
This
->
version
,
pOuter
,
(
void
**
)
&
punk
);
r
=
This
->
pCreateInstance
(
This
->
version
,
(
void
**
)
&
punk
);
if
(
FAILED
(
r
))
return
r
;
...
...
dlls/msxml3/httprequest.c
View file @
cdc9eff5
...
...
@@ -1166,7 +1166,7 @@ static HRESULT httprequest_get_responseXML(httprequest *This, IDispatch **body)
if
(
!
body
)
return
E_INVALIDARG
;
if
(
This
->
state
!=
READYSTATE_COMPLETE
)
return
E_FAIL
;
hr
=
DOMDocument_create
(
MSXML_DEFAULT
,
NULL
,
(
void
**
)
&
doc
);
hr
=
DOMDocument_create
(
MSXML_DEFAULT
,
(
void
**
)
&
doc
);
if
(
hr
!=
S_OK
)
return
hr
;
hr
=
httprequest_get_responseText
(
This
,
&
str
);
...
...
@@ -2007,11 +2007,11 @@ static void init_httprequest(httprequest *req)
req
->
safeopt
=
0
;
}
HRESULT
XMLHTTPRequest_create
(
IUnknown
*
outer
,
void
**
obj
)
HRESULT
XMLHTTPRequest_create
(
void
**
obj
)
{
httprequest
*
req
;
TRACE
(
"(%p
, %p)
\n
"
,
outer
,
obj
);
TRACE
(
"(%p
)
\n
"
,
obj
);
req
=
heap_alloc
(
sizeof
(
*
req
)
);
if
(
!
req
)
...
...
@@ -2025,11 +2025,11 @@ HRESULT XMLHTTPRequest_create(IUnknown *outer, void **obj)
return
S_OK
;
}
HRESULT
ServerXMLHTTP_create
(
IUnknown
*
outer
,
void
**
obj
)
HRESULT
ServerXMLHTTP_create
(
void
**
obj
)
{
serverhttp
*
req
;
TRACE
(
"(%p
, %p)
\n
"
,
outer
,
obj
);
TRACE
(
"(%p
)
\n
"
,
obj
);
req
=
heap_alloc
(
sizeof
(
*
req
)
);
if
(
!
req
)
...
...
@@ -2048,14 +2048,14 @@ HRESULT ServerXMLHTTP_create(IUnknown *outer, void **obj)
#else
HRESULT
XMLHTTPRequest_create
(
IUnknown
*
pUnkOuter
,
void
**
ppObj
)
HRESULT
XMLHTTPRequest_create
(
void
**
ppObj
)
{
MESSAGE
(
"This program tried to use a XMLHTTPRequest object, but
\n
"
"libxml2 support was not present at compile time.
\n
"
);
return
E_NOTIMPL
;
}
HRESULT
ServerXMLHTTP_create
(
IUnknown
*
outer
,
void
**
obj
)
HRESULT
ServerXMLHTTP_create
(
void
**
obj
)
{
MESSAGE
(
"This program tried to use a ServerXMLHTTP object, but
\n
"
"libxml2 support was not present at compile time.
\n
"
);
...
...
dlls/msxml3/msxml_private.h
View file @
cdc9eff5
...
...
@@ -300,7 +300,7 @@ extern HRESULT xmldoc_remove_orphan( xmlDocPtr doc, xmlNodePtr node ) DECLSPEC_H
extern
void
xmldoc_link_xmldecl
(
xmlDocPtr
doc
,
xmlNodePtr
node
)
DECLSPEC_HIDDEN
;
extern
xmlNodePtr
xmldoc_unlink_xmldecl
(
xmlDocPtr
doc
)
DECLSPEC_HIDDEN
;
extern
HRESULT
XMLElement_create
(
IUnknown
*
pUnkOuter
,
xmlNodePtr
node
,
LPVOID
*
ppObj
,
BOOL
own
)
DECLSPEC_HIDDEN
;
extern
HRESULT
XMLElement_create
(
xmlNodePtr
node
,
LPVOID
*
ppObj
,
BOOL
own
)
DECLSPEC_HIDDEN
;
extern
void
wineXmlCallbackLog
(
char
const
*
caller
,
xmlErrorLevel
lvl
,
char
const
*
msg
,
va_list
ap
)
DECLSPEC_HIDDEN
;
extern
void
wineXmlCallbackError
(
char
const
*
caller
,
xmlErrorPtr
err
)
DECLSPEC_HIDDEN
;
...
...
@@ -486,18 +486,18 @@ static inline HRESULT return_var_false(VARIANT_BOOL *p)
extern
IXMLDOMParseError
*
create_parseError
(
LONG
code
,
BSTR
url
,
BSTR
reason
,
BSTR
srcText
,
LONG
line
,
LONG
linepos
,
LONG
filepos
)
DECLSPEC_HIDDEN
;
extern
HRESULT
DOMDocument_create
(
MSXML_VERSION
,
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
SchemaCache_create
(
MSXML_VERSION
,
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
XMLDocument_create
(
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
SAXXMLReader_create
(
MSXML_VERSION
,
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
SAXAttributes_create
(
MSXML_VERSION
,
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
XMLHTTPRequest_create
(
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
ServerXMLHTTP_create
(
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
XSLTemplate_create
(
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
MXWriter_create
(
MSXML_VERSION
,
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
MXNamespaceManager_create
(
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
XMLParser_create
(
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
XMLView_create
(
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
DOMDocument_create
(
MSXML_VERSION
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
SchemaCache_create
(
MSXML_VERSION
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
XMLDocument_create
(
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
SAXXMLReader_create
(
MSXML_VERSION
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
SAXAttributes_create
(
MSXML_VERSION
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
XMLHTTPRequest_create
(
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
ServerXMLHTTP_create
(
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
XSLTemplate_create
(
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
MXWriter_create
(
MSXML_VERSION
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
MXNamespaceManager_create
(
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
XMLParser_create
(
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
XMLView_create
(
void
**
)
DECLSPEC_HIDDEN
;
static
inline
const
CLSID
*
DOMDocument_version
(
MSXML_VERSION
v
)
{
...
...
dlls/msxml3/mxnamespace.c
View file @
cdc9eff5
...
...
@@ -645,12 +645,12 @@ static dispex_static_data_t namespacemanager_dispex = {
namespacemanager_iface_tids
};
HRESULT
MXNamespaceManager_create
(
IUnknown
*
outer
,
void
**
obj
)
HRESULT
MXNamespaceManager_create
(
void
**
obj
)
{
namespacemanager
*
This
;
struct
nscontext
*
ctxt
;
TRACE
(
"(%p
, %p)
\n
"
,
outer
,
obj
);
TRACE
(
"(%p
)
\n
"
,
obj
);
This
=
heap_alloc
(
sizeof
(
*
This
)
);
if
(
!
This
)
...
...
dlls/msxml3/mxwriter.c
View file @
cdc9eff5
...
...
@@ -1658,15 +1658,13 @@ static dispex_static_data_t mxwriter_dispex = {
mxwriter_iface_tids
};
HRESULT
MXWriter_create
(
MSXML_VERSION
version
,
IUnknown
*
outer
,
void
**
ppObj
)
HRESULT
MXWriter_create
(
MSXML_VERSION
version
,
void
**
ppObj
)
{
static
const
WCHAR
version10W
[]
=
{
'1'
,
'.'
,
'0'
,
0
};
mxwriter
*
This
;
HRESULT
hr
;
TRACE
(
"(%p, %p)
\n
"
,
outer
,
ppObj
);
if
(
outer
)
FIXME
(
"support aggregation, outer
\n
"
);
TRACE
(
"(%p)
\n
"
,
ppObj
);
This
=
heap_alloc
(
sizeof
(
*
This
)
);
if
(
!
This
)
...
...
@@ -2515,12 +2513,12 @@ static dispex_static_data_t mxattrs_dispex = {
mxattrs_iface_tids
};
HRESULT
SAXAttributes_create
(
MSXML_VERSION
version
,
IUnknown
*
outer
,
void
**
ppObj
)
HRESULT
SAXAttributes_create
(
MSXML_VERSION
version
,
void
**
ppObj
)
{
static
const
int
default_count
=
10
;
mxattributes
*
This
;
TRACE
(
"(%p
, %p)
\n
"
,
outer
,
ppObj
);
TRACE
(
"(%p
)
\n
"
,
ppObj
);
This
=
heap_alloc
(
sizeof
(
*
This
)
);
if
(
!
This
)
...
...
dlls/msxml3/saxreader.c
View file @
cdc9eff5
...
...
@@ -3301,11 +3301,11 @@ static dispex_static_data_t saxreader_dispex = {
saxreader_iface_tids
};
HRESULT
SAXXMLReader_create
(
MSXML_VERSION
version
,
IUnknown
*
outer
,
LPVOID
*
ppObj
)
HRESULT
SAXXMLReader_create
(
MSXML_VERSION
version
,
LPVOID
*
ppObj
)
{
saxreader
*
reader
;
TRACE
(
"(%p
, %p)
\n
"
,
outer
,
ppObj
);
TRACE
(
"(%p
)
\n
"
,
ppObj
);
reader
=
heap_alloc
(
sizeof
(
*
reader
)
);
if
(
!
reader
)
...
...
@@ -3348,7 +3348,7 @@ HRESULT SAXXMLReader_create(MSXML_VERSION version, IUnknown *outer, LPVOID *ppOb
#else
HRESULT
SAXXMLReader_create
(
MSXML_VERSION
version
,
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
HRESULT
SAXXMLReader_create
(
MSXML_VERSION
version
,
LPVOID
*
ppObj
)
{
MESSAGE
(
"This program tried to use a SAX XML Reader object, but
\n
"
"libxml2 support was not present at compile time.
\n
"
);
...
...
dlls/msxml3/schema.c
View file @
cdc9eff5
...
...
@@ -936,7 +936,7 @@ static cache_entry* cache_entry_from_url(VARIANT url, xmlChar const* nsURI, MSXM
cache_entry
*
entry
;
IXMLDOMDocument3
*
domdoc
=
NULL
;
xmlDocPtr
doc
=
NULL
;
HRESULT
hr
=
DOMDocument_create
(
version
,
NULL
,
(
void
**
)
&
domdoc
);
HRESULT
hr
=
DOMDocument_create
(
version
,
(
void
**
)
&
domdoc
);
VARIANT_BOOL
b
=
VARIANT_FALSE
;
CacheEntryType
type
=
CacheEntryType_Invalid
;
...
...
@@ -1568,13 +1568,13 @@ static dispex_static_data_t schemacache_dispex = {
schemacache_iface_tids
};
HRESULT
SchemaCache_create
(
MSXML_VERSION
version
,
IUnknown
*
outer
,
void
**
obj
)
HRESULT
SchemaCache_create
(
MSXML_VERSION
version
,
void
**
obj
)
{
schema_cache
*
This
=
heap_alloc
(
sizeof
(
schema_cache
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
TRACE
(
"(%d %p
%p)
\n
"
,
version
,
outer
,
obj
);
TRACE
(
"(%d %p
)
\n
"
,
version
,
obj
);
This
->
IXMLDOMSchemaCollection2_iface
.
lpVtbl
=
&
XMLDOMSchemaCollection2Vtbl
;
This
->
cache
=
xmlHashCreate
(
DEFAULT_HASHTABLE_SIZE
);
...
...
@@ -1593,7 +1593,7 @@ HRESULT SchemaCache_create(MSXML_VERSION version, IUnknown* outer, void** obj)
#else
HRESULT
SchemaCache_create
(
MSXML_VERSION
version
,
IUnknown
*
outer
,
void
**
obj
)
HRESULT
SchemaCache_create
(
MSXML_VERSION
version
,
void
**
obj
)
{
MESSAGE
(
"This program tried to use a SchemaCache object, but
\n
"
"libxml2 support was not present at compile time.
\n
"
);
...
...
dlls/msxml3/stylesheet.c
View file @
cdc9eff5
...
...
@@ -237,13 +237,11 @@ static dispex_static_data_t xsltemplate_dispex = {
xsltemplate_iface_tids
};
HRESULT
XSLTemplate_create
(
IUnknown
*
outer
,
void
**
ppObj
)
HRESULT
XSLTemplate_create
(
void
**
ppObj
)
{
xsltemplate
*
This
;
TRACE
(
"(%p, %p)
\n
"
,
outer
,
ppObj
);
if
(
outer
)
FIXME
(
"support aggregation, outer
\n
"
);
TRACE
(
"(%p)
\n
"
,
ppObj
);
This
=
heap_alloc
(
sizeof
(
*
This
)
);
if
(
!
This
)
...
...
@@ -372,7 +370,7 @@ static HRESULT WINAPI xslprocessor_put_input( IXSLProcessor *iface, VARIANT inpu
{
IXMLDOMDocument
*
doc
;
hr
=
DOMDocument_create
(
MSXML_DEFAULT
,
NULL
,
(
void
**
)
&
doc
);
hr
=
DOMDocument_create
(
MSXML_DEFAULT
,
(
void
**
)
&
doc
);
if
(
hr
==
S_OK
)
{
VARIANT_BOOL
b
;
...
...
dlls/msxml3/xmldoc.c
View file @
cdc9eff5
...
...
@@ -212,7 +212,7 @@ static HRESULT WINAPI xmldoc_get_root(IXMLDocument *iface, IXMLElement **p)
if
(
!
(
root
=
xmlDocGetRootElement
(
This
->
xmldoc
)))
return
E_FAIL
;
return
XMLElement_create
(
(
IUnknown
*
)
This
,
root
,
(
LPVOID
*
)
p
,
FALSE
);
return
XMLElement_create
(
root
,
(
LPVOID
*
)
p
,
FALSE
);
}
static
HRESULT
WINAPI
xmldoc_get_fileSize
(
IXMLDocument
*
iface
,
BSTR
*
p
)
...
...
@@ -524,7 +524,7 @@ static HRESULT WINAPI xmldoc_createElement(IXMLDocument *iface, VARIANT vType,
node
->
type
=
type_msxml_to_libxml
(
V_I4
(
&
vType
));
/* FIXME: create xmlNodePtr based on vType and var1 */
return
XMLElement_create
(
(
IUnknown
*
)
iface
,
node
,
(
LPVOID
*
)
ppElem
,
TRUE
);
return
XMLElement_create
(
node
,
(
LPVOID
*
)
ppElem
,
TRUE
);
}
static
const
struct
IXMLDocumentVtbl
xmldoc_vtbl
=
...
...
@@ -696,11 +696,11 @@ static const IPersistStreamInitVtbl xmldoc_IPersistStreamInit_VTable =
xmldoc_IPersistStreamInit_InitNew
};
HRESULT
XMLDocument_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
HRESULT
XMLDocument_create
(
LPVOID
*
ppObj
)
{
xmldoc
*
doc
;
TRACE
(
"(%p
,%p)
\n
"
,
pUnkOuter
,
ppObj
);
TRACE
(
"(%p
)
\n
"
,
ppObj
);
doc
=
heap_alloc
(
sizeof
(
*
doc
));
if
(
!
doc
)
...
...
@@ -721,7 +721,7 @@ HRESULT XMLDocument_create(IUnknown *pUnkOuter, LPVOID *ppObj)
#else
HRESULT
XMLDocument_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
HRESULT
XMLDocument_create
(
LPVOID
*
ppObj
)
{
MESSAGE
(
"This program tried to use an XMLDocument object, but
\n
"
"libxml2 support was not present at compile time.
\n
"
);
...
...
dlls/msxml3/xmlelem.c
View file @
cdc9eff5
...
...
@@ -43,7 +43,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
#ifdef HAVE_LIBXML2
static
HRESULT
XMLElementCollection_create
(
IUnknown
*
pUnkOuter
,
xmlNodePtr
node
,
LPVOID
*
ppObj
);
static
HRESULT
XMLElementCollection_create
(
xmlNodePtr
node
,
LPVOID
*
ppObj
);
/**********************************************************************
* IXMLElement
...
...
@@ -227,7 +227,7 @@ static HRESULT WINAPI xmlelem_get_parent(IXMLElement *iface, IXMLElement **paren
if
(
!
This
->
node
->
parent
)
return
S_FALSE
;
return
XMLElement_create
(
(
IUnknown
*
)
iface
,
This
->
node
->
parent
,
(
LPVOID
*
)
parent
,
FALSE
);
return
XMLElement_create
(
This
->
node
->
parent
,
(
LPVOID
*
)
parent
,
FALSE
);
}
static
HRESULT
WINAPI
xmlelem_setAttribute
(
IXMLElement
*
iface
,
BSTR
strPropertyName
,
...
...
@@ -350,7 +350,7 @@ static HRESULT WINAPI xmlelem_get_children(IXMLElement *iface, IXMLElementCollec
if
(
!
p
)
return
E_INVALIDARG
;
return
XMLElementCollection_create
(
(
IUnknown
*
)
iface
,
This
->
node
,
(
LPVOID
*
)
p
);
return
XMLElementCollection_create
(
This
->
node
,
(
LPVOID
*
)
p
);
}
static
LONG
type_libxml_to_msxml
(
xmlElementType
type
)
...
...
@@ -491,11 +491,11 @@ static const struct IXMLElementVtbl xmlelem_vtbl =
xmlelem_removeChild
};
HRESULT
XMLElement_create
(
IUnknown
*
pUnkOuter
,
xmlNodePtr
node
,
LPVOID
*
ppObj
,
BOOL
own
)
HRESULT
XMLElement_create
(
xmlNodePtr
node
,
LPVOID
*
ppObj
,
BOOL
own
)
{
xmlelem
*
elem
;
TRACE
(
"(%p
,%p)
\n
"
,
pUnkOuter
,
ppObj
);
TRACE
(
"(%p
)
\n
"
,
ppObj
);
if
(
!
ppObj
)
return
E_INVALIDARG
;
...
...
@@ -693,7 +693,7 @@ static HRESULT WINAPI xmlelem_collection_item(IXMLElementCollection *iface, VARI
for
(
i
=
0
;
i
<
index
;
i
++
)
ptr
=
ptr
->
next
;
return
XMLElement_create
(
(
IUnknown
*
)
iface
,
ptr
,
(
LPVOID
*
)
ppDisp
,
FALSE
);
return
XMLElement_create
(
ptr
,
(
LPVOID
*
)
ppDisp
,
FALSE
);
}
static
const
struct
IXMLElementCollectionVtbl
xmlelem_collection_vtbl
=
...
...
@@ -760,7 +760,7 @@ static HRESULT WINAPI xmlelem_collection_IEnumVARIANT_Next(
}
V_VT
(
rgVar
)
=
VT_DISPATCH
;
return
XMLElement_create
(
(
IUnknown
*
)
iface
,
ptr
,
(
LPVOID
*
)
&
V_DISPATCH
(
rgVar
),
FALSE
);
return
XMLElement_create
(
ptr
,
(
LPVOID
*
)
&
V_DISPATCH
(
rgVar
),
FALSE
);
}
static
HRESULT
WINAPI
xmlelem_collection_IEnumVARIANT_Skip
(
...
...
@@ -799,11 +799,11 @@ static const struct IEnumVARIANTVtbl xmlelem_collection_IEnumVARIANTvtbl =
xmlelem_collection_IEnumVARIANT_Clone
};
static
HRESULT
XMLElementCollection_create
(
IUnknown
*
pUnkOuter
,
xmlNodePtr
node
,
LPVOID
*
ppObj
)
static
HRESULT
XMLElementCollection_create
(
xmlNodePtr
node
,
LPVOID
*
ppObj
)
{
xmlelem_collection
*
collection
;
TRACE
(
"(%p
,%p)
\n
"
,
pUnkOuter
,
ppObj
);
TRACE
(
"(%p
)
\n
"
,
ppObj
);
*
ppObj
=
NULL
;
...
...
dlls/msxml3/xmlparser.c
View file @
cdc9eff5
...
...
@@ -433,14 +433,11 @@ static const struct IXMLParserVtbl xmlparser_vtbl =
xmlparser_GetSecureBaseURL
};
HRESULT
XMLParser_create
(
IUnknown
*
pUnkOuter
,
void
**
ppObj
)
HRESULT
XMLParser_create
(
void
**
ppObj
)
{
xmlparser
*
This
;
TRACE
(
"(%p,%p)
\n
"
,
pUnkOuter
,
ppObj
);
if
(
pUnkOuter
)
FIXME
(
"support aggregation, outer
\n
"
);
TRACE
(
"(%p)
\n
"
,
ppObj
);
This
=
heap_alloc
(
sizeof
(
xmlparser
)
);
if
(
!
This
)
...
...
dlls/msxml3/xmlview.c
View file @
cdc9eff5
...
...
@@ -399,7 +399,7 @@ static inline HRESULT handle_xml_load(BindStatusCallback *This)
if
(
FAILED
(
hres
))
return
display_error_page
(
This
);
hres
=
DOMDocument_create
(
MSXML_DEFAULT
,
NULL
,
(
void
**
)
&
xml
);
hres
=
DOMDocument_create
(
MSXML_DEFAULT
,
(
void
**
)
&
xml
);
if
(
FAILED
(
hres
))
return
display_error_page
(
This
);
...
...
@@ -475,7 +475,7 @@ static inline HRESULT handle_xml_load(BindStatusCallback *This)
return
display_error_page
(
This
);
}
hres
=
DOMDocument_create
(
MSXML_DEFAULT
,
NULL
,
(
void
**
)
&
xsl
);
hres
=
DOMDocument_create
(
MSXML_DEFAULT
,
(
void
**
)
&
xsl
);
if
(
FAILED
(
hres
))
{
VariantClear
(
&
var
);
IXMLDOMDocument3_Release
(
xml
);
...
...
@@ -1424,15 +1424,12 @@ static IOleObjectVtbl XMLView_OleObjectVtbl = {
XMLView_OleObject_SetColorScheme
};
HRESULT
XMLView_create
(
IUnknown
*
outer
,
void
**
ppObj
)
HRESULT
XMLView_create
(
void
**
ppObj
)
{
XMLView
*
This
;
HRESULT
hres
;
TRACE
(
"(%p %p)
\n
"
,
outer
,
ppObj
);
if
(
outer
)
return
E_FAIL
;
TRACE
(
"(%p)
\n
"
,
ppObj
);
This
=
heap_alloc_zero
(
sizeof
(
*
This
));
if
(
!
This
)
...
...
@@ -1457,7 +1454,7 @@ HRESULT XMLView_create(IUnknown *outer, void **ppObj)
#else
HRESULT
XMLView_create
(
IUnknown
*
outer
,
void
**
ppObj
)
HRESULT
XMLView_create
(
void
**
ppObj
)
{
MESSAGE
(
"This program tried to use a XMLView object, but
\n
"
"libxml2 support was not present at compile time.
\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