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
e983db85
Commit
e983db85
authored
Jan 24, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Internally call methods with interface macros.
parent
85cf92ae
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
35 deletions
+35
-35
domdoc.c
dlls/msxml3/domdoc.c
+20
-20
pi.c
dlls/msxml3/pi.c
+11
-11
text.c
dlls/msxml3/text.c
+4
-4
No files found.
dlls/msxml3/domdoc.c
View file @
e983db85
...
@@ -672,28 +672,28 @@ static inline domdoc *impl_from_IConnectionPointContainer(IConnectionPointContai
...
@@ -672,28 +672,28 @@ static inline domdoc *impl_from_IConnectionPointContainer(IConnectionPointContai
/************************************************************************
/************************************************************************
* domdoc implementation of IPersistStream.
* domdoc implementation of IPersistStream.
*/
*/
static
HRESULT
WINAPI
domdoc_I
PersistStreamInit_QueryInterface
(
static
HRESULT
WINAPI
PersistStreamInit_QueryInterface
(
IPersistStreamInit
*
iface
,
REFIID
riid
,
void
**
ppvObj
)
IPersistStreamInit
*
iface
,
REFIID
riid
,
void
**
ppvObj
)
{
{
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
return
IXMLDOMDocument3_QueryInterface
(
&
This
->
IXMLDOMDocument3_iface
,
riid
,
ppvObj
);
return
IXMLDOMDocument3_QueryInterface
(
&
This
->
IXMLDOMDocument3_iface
,
riid
,
ppvObj
);
}
}
static
ULONG
WINAPI
domdoc_I
PersistStreamInit_AddRef
(
static
ULONG
WINAPI
PersistStreamInit_AddRef
(
IPersistStreamInit
*
iface
)
IPersistStreamInit
*
iface
)
{
{
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
return
IXMLDOMDocument3_AddRef
(
&
This
->
IXMLDOMDocument3_iface
);
return
IXMLDOMDocument3_AddRef
(
&
This
->
IXMLDOMDocument3_iface
);
}
}
static
ULONG
WINAPI
domdoc_I
PersistStreamInit_Release
(
static
ULONG
WINAPI
PersistStreamInit_Release
(
IPersistStreamInit
*
iface
)
IPersistStreamInit
*
iface
)
{
{
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
return
IXMLDOMDocument3_Release
(
&
This
->
IXMLDOMDocument3_iface
);
return
IXMLDOMDocument3_Release
(
&
This
->
IXMLDOMDocument3_iface
);
}
}
static
HRESULT
WINAPI
domdoc_I
PersistStreamInit_GetClassID
(
static
HRESULT
WINAPI
PersistStreamInit_GetClassID
(
IPersistStreamInit
*
iface
,
CLSID
*
classid
)
IPersistStreamInit
*
iface
,
CLSID
*
classid
)
{
{
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
...
@@ -707,7 +707,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_GetClassID(
...
@@ -707,7 +707,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_GetClassID(
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
domdoc_I
PersistStreamInit_IsDirty
(
static
HRESULT
WINAPI
PersistStreamInit_IsDirty
(
IPersistStreamInit
*
iface
)
IPersistStreamInit
*
iface
)
{
{
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
...
@@ -715,7 +715,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_IsDirty(
...
@@ -715,7 +715,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_IsDirty(
return
S_FALSE
;
return
S_FALSE
;
}
}
static
HRESULT
WINAPI
domdoc_I
PersistStreamInit_Load
(
static
HRESULT
WINAPI
PersistStreamInit_Load
(
IPersistStreamInit
*
iface
,
LPSTREAM
pStm
)
IPersistStreamInit
*
iface
,
LPSTREAM
pStm
)
{
{
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
...
@@ -768,7 +768,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_Load(
...
@@ -768,7 +768,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_Load(
return
attach_xmldoc
(
This
,
xmldoc
);
return
attach_xmldoc
(
This
,
xmldoc
);
}
}
static
HRESULT
WINAPI
domdoc_I
PersistStreamInit_Save
(
static
HRESULT
WINAPI
PersistStreamInit_Save
(
IPersistStreamInit
*
iface
,
IStream
*
stream
,
BOOL
clr_dirty
)
IPersistStreamInit
*
iface
,
IStream
*
stream
,
BOOL
clr_dirty
)
{
{
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
...
@@ -791,7 +791,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_Save(
...
@@ -791,7 +791,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_Save(
return
hr
;
return
hr
;
}
}
static
HRESULT
WINAPI
domdoc_I
PersistStreamInit_GetSizeMax
(
static
HRESULT
WINAPI
PersistStreamInit_GetSizeMax
(
IPersistStreamInit
*
iface
,
ULARGE_INTEGER
*
pcbSize
)
IPersistStreamInit
*
iface
,
ULARGE_INTEGER
*
pcbSize
)
{
{
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
...
@@ -799,7 +799,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_GetSizeMax(
...
@@ -799,7 +799,7 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_GetSizeMax(
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
domdoc_I
PersistStreamInit_InitNew
(
static
HRESULT
WINAPI
PersistStreamInit_InitNew
(
IPersistStreamInit
*
iface
)
IPersistStreamInit
*
iface
)
{
{
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
domdoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
...
@@ -809,15 +809,15 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_InitNew(
...
@@ -809,15 +809,15 @@ static HRESULT WINAPI domdoc_IPersistStreamInit_InitNew(
static
const
IPersistStreamInitVtbl
xmldoc_IPersistStreamInit_VTable
=
static
const
IPersistStreamInitVtbl
xmldoc_IPersistStreamInit_VTable
=
{
{
domdoc_I
PersistStreamInit_QueryInterface
,
PersistStreamInit_QueryInterface
,
domdoc_I
PersistStreamInit_AddRef
,
PersistStreamInit_AddRef
,
domdoc_I
PersistStreamInit_Release
,
PersistStreamInit_Release
,
domdoc_I
PersistStreamInit_GetClassID
,
PersistStreamInit_GetClassID
,
domdoc_I
PersistStreamInit_IsDirty
,
PersistStreamInit_IsDirty
,
domdoc_I
PersistStreamInit_Load
,
PersistStreamInit_Load
,
domdoc_I
PersistStreamInit_Save
,
PersistStreamInit_Save
,
domdoc_I
PersistStreamInit_GetSizeMax
,
PersistStreamInit_GetSizeMax
,
domdoc_I
PersistStreamInit_InitNew
PersistStreamInit_InitNew
};
};
/* IXMLDOMDocument3 interface */
/* IXMLDOMDocument3 interface */
...
@@ -2665,7 +2665,7 @@ static HRESULT WINAPI domdoc_validateNode(
...
@@ -2665,7 +2665,7 @@ static HRESULT WINAPI domdoc_validateNode(
int
validated
=
0
;
int
validated
=
0
;
TRACE
(
"(%p)->(%p, %p)
\n
"
,
This
,
node
,
err
);
TRACE
(
"(%p)->(%p, %p)
\n
"
,
This
,
node
,
err
);
domdoc
_get_readyState
(
iface
,
&
state
);
IXMLDOMDocument3
_get_readyState
(
iface
,
&
state
);
if
(
state
!=
READYSTATE_COMPLETE
)
if
(
state
!=
READYSTATE_COMPLETE
)
{
{
if
(
err
)
if
(
err
)
...
@@ -2760,7 +2760,7 @@ static HRESULT WINAPI domdoc_validate(
...
@@ -2760,7 +2760,7 @@ static HRESULT WINAPI domdoc_validate(
{
{
domdoc
*
This
=
impl_from_IXMLDOMDocument3
(
iface
);
domdoc
*
This
=
impl_from_IXMLDOMDocument3
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
err
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
err
);
return
domdoc
_validateNode
(
iface
,
(
IXMLDOMNode
*
)
iface
,
err
);
return
IXMLDOMDocument3
_validateNode
(
iface
,
(
IXMLDOMNode
*
)
iface
,
err
);
}
}
static
HRESULT
WINAPI
domdoc_setProperty
(
static
HRESULT
WINAPI
domdoc_setProperty
(
...
...
dlls/msxml3/pi.c
View file @
e983db85
...
@@ -222,23 +222,23 @@ static HRESULT WINAPI dom_pi_put_nodeValue(
...
@@ -222,23 +222,23 @@ static HRESULT WINAPI dom_pi_put_nodeValue(
VARIANT
value
)
VARIANT
value
)
{
{
dom_pi
*
This
=
impl_from_IXMLDOMProcessingInstruction
(
iface
);
dom_pi
*
This
=
impl_from_IXMLDOMProcessingInstruction
(
iface
);
BSTR
sT
arget
;
BSTR
t
arget
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
value
));
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
value
));
/* Cannot set data to a PI node whose target is 'xml' */
/* Cannot set data to a PI node whose target is 'xml' */
hr
=
dom_pi_get_nodeName
(
iface
,
&
sT
arget
);
hr
=
IXMLDOMProcessingInstruction_get_nodeName
(
iface
,
&
t
arget
);
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
{
{
static
const
WCHAR
xmlW
[]
=
{
'x'
,
'm'
,
'l'
,
0
};
static
const
WCHAR
xmlW
[]
=
{
'x'
,
'm'
,
'l'
,
0
};
if
(
lstrcmpW
(
sTarget
,
xmlW
)
==
0
)
if
(
!
strcmpW
(
target
,
xmlW
)
)
{
{
SysFreeString
(
sT
arget
);
SysFreeString
(
t
arget
);
return
E_FAIL
;
return
E_FAIL
;
}
}
SysFreeString
(
sT
arget
);
SysFreeString
(
t
arget
);
}
}
return
node_put_value
(
&
This
->
node
,
&
value
);
return
node_put_value
(
&
This
->
node
,
&
value
);
...
@@ -637,24 +637,24 @@ static HRESULT WINAPI dom_pi_put_data(
...
@@ -637,24 +637,24 @@ static HRESULT WINAPI dom_pi_put_data(
BSTR
data
)
BSTR
data
)
{
{
dom_pi
*
This
=
impl_from_IXMLDOMProcessingInstruction
(
iface
);
dom_pi
*
This
=
impl_from_IXMLDOMProcessingInstruction
(
iface
);
HRESULT
hr
;
VARIANT
val
;
VARIANT
val
;
BSTR
sTarget
;
BSTR
target
;
HRESULT
hr
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
data
)
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
data
)
);
/* Cannot set data to a PI node whose target is 'xml' */
/* Cannot set data to a PI node whose target is 'xml' */
hr
=
dom_pi_get_nodeName
(
iface
,
&
sT
arget
);
hr
=
IXMLDOMProcessingInstruction_get_nodeName
(
iface
,
&
t
arget
);
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
{
{
static
const
WCHAR
xmlW
[]
=
{
'x'
,
'm'
,
'l'
,
0
};
static
const
WCHAR
xmlW
[]
=
{
'x'
,
'm'
,
'l'
,
0
};
if
(
lstrcmpW
(
sTarget
,
xmlW
)
==
0
)
if
(
!
strcmpW
(
target
,
xmlW
)
)
{
{
SysFreeString
(
sT
arget
);
SysFreeString
(
t
arget
);
return
E_FAIL
;
return
E_FAIL
;
}
}
SysFreeString
(
sT
arget
);
SysFreeString
(
t
arget
);
}
}
V_VT
(
&
val
)
=
VT_BSTR
;
V_VT
(
&
val
)
=
VT_BSTR
;
...
...
dlls/msxml3/text.c
View file @
e983db85
...
@@ -406,7 +406,7 @@ static HRESULT WINAPI domtext_get_nodeTypedValue(
...
@@ -406,7 +406,7 @@ static HRESULT WINAPI domtext_get_nodeTypedValue(
if
(
!
var1
)
if
(
!
var1
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
hr
=
domt
ext_get_parentNode
(
iface
,
&
parent
);
hr
=
IXMLDOMT
ext_get_parentNode
(
iface
,
&
parent
);
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
{
{
...
@@ -433,7 +433,7 @@ static HRESULT WINAPI domtext_put_nodeTypedValue(
...
@@ -433,7 +433,7 @@ static HRESULT WINAPI domtext_put_nodeTypedValue(
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
value
));
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
value
));
hr
=
domt
ext_get_parentNode
(
iface
,
&
parent
);
hr
=
IXMLDOMT
ext_get_parentNode
(
iface
,
&
parent
);
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
{
{
...
@@ -461,7 +461,7 @@ static HRESULT WINAPI domtext_get_dataType(
...
@@ -461,7 +461,7 @@ static HRESULT WINAPI domtext_get_dataType(
if
(
!
dtName
)
if
(
!
dtName
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
hr
=
domt
ext_get_parentNode
(
iface
,
&
parent
);
hr
=
IXMLDOMT
ext_get_parentNode
(
iface
,
&
parent
);
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
{
{
...
@@ -491,7 +491,7 @@ static HRESULT WINAPI domtext_put_dataType(
...
@@ -491,7 +491,7 @@ static HRESULT WINAPI domtext_put_dataType(
if
(
!
dtName
)
if
(
!
dtName
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
hr
=
domt
ext_get_parentNode
(
iface
,
&
parent
);
hr
=
IXMLDOMT
ext_get_parentNode
(
iface
,
&
parent
);
if
(
hr
==
S_OK
)
if
(
hr
==
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