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
f2ed4de9
Commit
f2ed4de9
authored
Sep 17, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Remove some useless initializers.
parent
893e8a46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
pi.c
dlls/msxml3/pi.c
+13
-12
No files found.
dlls/msxml3/pi.c
View file @
f2ed4de9
...
...
@@ -206,7 +206,6 @@ static HRESULT WINAPI dom_pi_put_nodeValue(
{
dom_pi
*
This
=
impl_from_IXMLDOMProcessingInstruction
(
iface
);
BSTR
sTarget
;
static
const
WCHAR
szXML
[]
=
{
'x'
,
'm'
,
'l'
,
0
};
HRESULT
hr
;
TRACE
(
"(%p)->(v%d)
\n
"
,
This
,
V_VT
(
&
value
));
...
...
@@ -215,7 +214,8 @@ static HRESULT WINAPI dom_pi_put_nodeValue(
hr
=
dom_pi_get_nodeName
(
iface
,
&
sTarget
);
if
(
hr
==
S_OK
)
{
if
(
lstrcmpW
(
sTarget
,
szXML
)
==
0
)
static
const
WCHAR
xmlW
[]
=
{
'x'
,
'm'
,
'l'
,
0
};
if
(
lstrcmpW
(
sTarget
,
xmlW
)
==
0
)
{
SysFreeString
(
sTarget
);
return
E_FAIL
;
...
...
@@ -539,16 +539,19 @@ static HRESULT WINAPI dom_pi_get_data(
IXMLDOMProcessingInstruction
*
iface
,
BSTR
*
p
)
{
HRESULT
hr
=
E_FAIL
;
VARIANT
vRet
;
dom_pi
*
This
=
impl_from_IXMLDOMProcessingInstruction
(
iface
);
HRESULT
hr
;
VARIANT
ret
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
p
)
return
E_INVALIDARG
;
hr
=
IXMLDOMProcessingInstruction_get_nodeValue
(
iface
,
&
vR
et
);
hr
=
IXMLDOMProcessingInstruction_get_nodeValue
(
iface
,
&
r
et
);
if
(
hr
==
S_OK
)
{
*
p
=
V_BSTR
(
&
vR
et
);
*
p
=
V_BSTR
(
&
r
et
);
}
return
hr
;
...
...
@@ -559,10 +562,9 @@ static HRESULT WINAPI dom_pi_put_data(
BSTR
data
)
{
dom_pi
*
This
=
impl_from_IXMLDOMProcessingInstruction
(
iface
);
HRESULT
hr
=
E_FAIL
;
HRESULT
hr
;
VARIANT
val
;
BSTR
sTarget
;
static
const
WCHAR
szXML
[]
=
{
'x'
,
'm'
,
'l'
,
0
};
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
data
)
);
...
...
@@ -570,7 +572,8 @@ static HRESULT WINAPI dom_pi_put_data(
hr
=
dom_pi_get_nodeName
(
iface
,
&
sTarget
);
if
(
hr
==
S_OK
)
{
if
(
lstrcmpW
(
sTarget
,
szXML
)
==
0
)
static
const
WCHAR
xmlW
[]
=
{
'x'
,
'm'
,
'l'
,
0
};
if
(
lstrcmpW
(
sTarget
,
xmlW
)
==
0
)
{
SysFreeString
(
sTarget
);
return
E_FAIL
;
...
...
@@ -582,9 +585,7 @@ static HRESULT WINAPI dom_pi_put_data(
V_VT
(
&
val
)
=
VT_BSTR
;
V_BSTR
(
&
val
)
=
data
;
hr
=
IXMLDOMProcessingInstruction_put_nodeValue
(
iface
,
val
);
return
hr
;
return
IXMLDOMProcessingInstruction_put_nodeValue
(
iface
,
val
);
}
static
const
struct
IXMLDOMProcessingInstructionVtbl
dom_pi_vtbl
=
...
...
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