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
c61937b6
Commit
c61937b6
authored
Feb 29, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Feb 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Correct IXMLDOMProcessingInstruction_put_data function.
parent
ad606f4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
pi.c
dlls/msxml3/pi.c
+15
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+1
-13
No files found.
dlls/msxml3/pi.c
View file @
c61937b6
...
...
@@ -506,9 +506,24 @@ static HRESULT WINAPI dom_pi_put_data(
dom_pi
*
This
=
impl_from_IXMLDOMProcessingInstruction
(
iface
);
HRESULT
hr
=
E_FAIL
;
VARIANT
val
;
BSTR
sTarget
;
static
WCHAR
szXML
[]
=
{
'x'
,
'm'
,
'l'
,
0
};
TRACE
(
"%p %s
\n
"
,
This
,
debugstr_w
(
data
)
);
/* 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
);
}
V_VT
(
&
val
)
=
VT_BSTR
;
V_BSTR
(
&
val
)
=
data
;
...
...
dlls/msxml3/tests/domdoc.c
View file @
c61937b6
...
...
@@ -682,19 +682,7 @@ static void test_domdoc( void )
/* test put_data */
r
=
IXMLDOMProcessingInstruction_put_data
(
nodePI
,
_bstr_
(
"version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
"
));
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
SysFreeString
(
str
);
r
=
IXMLDOMProcessingInstruction_get_data
(
nodePI
,
&
str
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
"
)
),
"incorrect data string
\n
"
);
SysFreeString
(
str
);
/* Confirm XML text is good */
r
=
IXMLDOMProcessingInstruction_get_xml
(
nodePI
,
&
str
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>"
)
),
"incorrect xml string
\n
"
);
SysFreeString
(
str
);
ok
(
r
==
E_FAIL
,
"ret %08x
\n
"
,
r
);
IXMLDOMProcessingInstruction_Release
(
nodePI
);
}
...
...
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