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
54df4811
Commit
54df4811
authored
Apr 19, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix handling of feature values.
parent
f27159a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
saxreader.c
dlls/msxml3/saxreader.c
+6
-0
saxreader.c
dlls/msxml3/tests/saxreader.c
+1
-6
No files found.
dlls/msxml3/saxreader.c
View file @
54df4811
...
...
@@ -288,6 +288,12 @@ static const WCHAR PropertyXMLDeclVersionW[] = {
static
inline
HRESULT
set_feature_value
(
saxreader
*
reader
,
saxreader_feature
feature
,
VARIANT_BOOL
value
)
{
/* handling of non-VARIANT_* values is version dependent */
if
((
reader
->
version
<
MSXML4
)
&&
(
value
!=
VARIANT_TRUE
))
value
=
VARIANT_FALSE
;
if
((
reader
->
version
>=
MSXML4
)
&&
(
value
!=
VARIANT_FALSE
))
value
=
VARIANT_TRUE
;
if
(
value
==
VARIANT_TRUE
)
reader
->
features
|=
feature
;
else
...
...
dlls/msxml3/tests/saxreader.c
View file @
54df4811
...
...
@@ -2198,12 +2198,7 @@ static void test_saxreader_features(void)
value
=
0xd
;
hr
=
ISAXXMLReader_getFeature
(
reader
,
_bstr_
(
*
name
),
&
value
);
EXPECT_HR
(
hr
,
S_OK
);
if
(
IsEqualGUID
(
entry
->
guid
,
&
CLSID_SAXXMLReader40
)
||
IsEqualGUID
(
entry
->
guid
,
&
CLSID_SAXXMLReader60
))
todo_wine
ok
(
entry
->
value2
==
value
,
"%s: got wrong value %x, expected %x
\n
"
,
entry
->
clsid
,
value
,
entry
->
value2
);
else
ok
(
entry
->
value2
==
value
,
"%s: got wrong value %x, expected %x
\n
"
,
entry
->
clsid
,
value
,
entry
->
value2
);
ok
(
entry
->
value2
==
value
,
"%s: got wrong value %x, expected %x
\n
"
,
entry
->
clsid
,
value
,
entry
->
value2
);
hr
=
ISAXXMLReader_putFeature
(
reader
,
_bstr_
(
*
name
),
VARIANT_FALSE
);
EXPECT_HR
(
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