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
52f6a33a
Commit
52f6a33a
authored
Mar 13, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Mar 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Cannot use put_nodeValue on a IXMLDOMProcessingInstruction node whose target is xml.
parent
442f29ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
pi.c
dlls/msxml3/pi.c
+19
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+7
-0
No files found.
dlls/msxml3/pi.c
View file @
52f6a33a
...
...
@@ -200,6 +200,25 @@ static HRESULT WINAPI dom_pi_put_nodeValue(
VARIANT
var1
)
{
dom_pi
*
This
=
impl_from_IXMLDOMProcessingInstruction
(
iface
);
BSTR
sTarget
;
static
WCHAR
szXML
[]
=
{
'x'
,
'm'
,
'l'
,
0
};
HRESULT
hr
;
TRACE
(
"%p
\n
"
,
This
);
/* Cannot set data to a PI node whos target is 'xml' */
hr
=
dom_pi_get_nodeName
(
iface
,
&
sTarget
);
if
(
hr
==
S_OK
)
{
if
(
lstrcmpW
(
sTarget
,
szXML
)
==
0
)
{
SysFreeString
(
sTarget
);
return
E_FAIL
;
}
SysFreeString
(
sTarget
);
}
return
IXMLDOMNode_put_nodeValue
(
This
->
node
,
var1
);
}
...
...
dlls/msxml3/tests/domdoc.c
View file @
52f6a33a
...
...
@@ -786,6 +786,13 @@ static void test_domdoc( void )
r
=
IXMLDOMProcessingInstruction_put_data
(
nodePI
,
_bstr_
(
"version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
"
));
ok
(
r
==
E_FAIL
,
"ret %08x
\n
"
,
r
);
/* test put_data */
V_VT
(
&
var
)
=
VT_BSTR
;
V_BSTR
(
&
var
)
=
SysAllocString
(
szOpen
);
/* Doesnt matter what the string is, cannot set an xml node. */
r
=
IXMLDOMProcessingInstruction_put_nodeValue
(
nodePI
,
var
);
ok
(
r
==
E_FAIL
,
"ret %08x
\n
"
,
r
);
VariantClear
(
&
var
);
/* test get nodeName */
r
=
IXMLDOMProcessingInstruction_get_nodeName
(
nodePI
,
&
str
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"xml"
)
),
"incorrect nodeName string
\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