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
622c94ac
Commit
622c94ac
authored
Apr 26, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Support disabled escaping mode for characters() callback.
parent
ca15adfd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
4 deletions
+29
-4
mxwriter.c
dlls/msxml3/mxwriter.c
+1
-1
saxreader.c
dlls/msxml3/tests/saxreader.c
+28
-3
No files found.
dlls/msxml3/mxwriter.c
View file @
622c94ac
...
...
@@ -1109,7 +1109,7 @@ static HRESULT WINAPI SAXContentHandler_characters(
if
(
nchars
)
{
if
(
This
->
cdata
)
if
(
This
->
cdata
||
This
->
props
[
MXWriter_DisableEscaping
]
==
VARIANT_TRUE
)
write_output_buffer
(
This
->
buffer
,
chars
,
nchars
);
else
{
...
...
dlls/msxml3/tests/saxreader.c
View file @
622c94ac
...
...
@@ -3248,6 +3248,7 @@ static void test_mxwriter_characters(void)
{
ISAXContentHandler
*
content
;
IMXWriter
*
writer
;
VARIANT
dest
;
HRESULT
hr
;
if
(
!
is_clsid_supported
(
table
->
clsid
,
mxwriter_support_data
))
...
...
@@ -3276,17 +3277,41 @@ static void test_mxwriter_characters(void)
/* test output */
if
(
hr
==
S_OK
)
{
VARIANT
dest
;
V_VT
(
&
dest
)
=
VT_EMPTY
;
hr
=
IMXWriter_get_output
(
writer
,
&
dest
);
EXPECT_HR
(
hr
,
S_OK
);
ok
(
V_VT
(
&
dest
)
==
VT_BSTR
,
"got %d
\n
"
,
V_VT
(
&
dest
));
ok
(
!
lstrcmpW
(
_bstr_
(
table
->
output
),
V_BSTR
(
&
dest
)),
"test %d: got wrong content %s, expected %s
\n
"
,
i
,
wine_dbgstr_w
(
V_BSTR
(
&
dest
)),
table
->
output
);
"test %d: got wrong content %s, expected
\"
%s
\"\n
"
,
i
,
wine_dbgstr_w
(
V_BSTR
(
&
dest
)),
table
->
output
);
VariantClear
(
&
dest
);
}
/* with disabled escaping */
V_VT
(
&
dest
)
=
VT_EMPTY
;
hr
=
IMXWriter_put_output
(
writer
,
dest
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
IMXWriter_put_disableOutputEscaping
(
writer
,
VARIANT_TRUE
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
ISAXContentHandler_characters
(
content
,
_bstr_
(
table
->
data
),
strlen
(
table
->
data
));
EXPECT_HR
(
hr
,
S_OK
);
/* test output */
if
(
hr
==
S_OK
)
{
V_VT
(
&
dest
)
=
VT_EMPTY
;
hr
=
IMXWriter_get_output
(
writer
,
&
dest
);
EXPECT_HR
(
hr
,
S_OK
);
ok
(
V_VT
(
&
dest
)
==
VT_BSTR
,
"got %d
\n
"
,
V_VT
(
&
dest
));
ok
(
!
lstrcmpW
(
_bstr_
(
table
->
data
),
V_BSTR
(
&
dest
)),
"test %d: got wrong content %s, expected
\"
%s
\"\n
"
,
i
,
wine_dbgstr_w
(
V_BSTR
(
&
dest
)),
table
->
data
);
VariantClear
(
&
dest
);
}
ISAXContentHandler_Release
(
content
);
IMXWriter_Release
(
writer
);
table
++
;
i
++
;
}
...
...
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