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
2b4f20b8
Commit
2b4f20b8
authored
Mar 03, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Support VT_BSTR|VT_BYREF as reader input.
parent
19eecac7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
saxreader.c
dlls/msxml3/saxreader.c
+5
-2
saxreader.c
dlls/msxml3/tests/saxreader.c
+8
-0
No files found.
dlls/msxml3/saxreader.c
View file @
2b4f20b8
...
@@ -2472,9 +2472,12 @@ static HRESULT internal_parse(
...
@@ -2472,9 +2472,12 @@ static HRESULT internal_parse(
switch
(
V_VT
(
&
varInput
))
switch
(
V_VT
(
&
varInput
))
{
{
case
VT_BSTR
:
case
VT_BSTR
:
hr
=
internal_parseBuffer
(
This
,
(
const
char
*
)
V_BSTR
(
&
varInput
),
case
VT_BSTR
|
VT_BYREF
:
strlenW
(
V_BSTR
(
&
varInput
))
*
sizeof
(
WCHAR
),
vbInterface
);
{
BSTR
str
=
V_ISBYREF
(
&
varInput
)
?
*
V_BSTRREF
(
&
varInput
)
:
V_BSTR
(
&
varInput
);
hr
=
internal_parseBuffer
(
This
,
(
const
char
*
)
str
,
strlenW
(
str
)
*
sizeof
(
WCHAR
),
vbInterface
);
break
;
break
;
}
case
VT_ARRAY
|
VT_UI1
:
{
case
VT_ARRAY
|
VT_UI1
:
{
void
*
pSAData
;
void
*
pSAData
;
LONG
lBound
,
uBound
;
LONG
lBound
,
uBound
;
...
...
dlls/msxml3/tests/saxreader.c
View file @
2b4f20b8
...
@@ -2512,6 +2512,7 @@ static void test_saxreader_properties(void)
...
@@ -2512,6 +2512,7 @@ static void test_saxreader_properties(void)
ISAXXMLReader
*
reader
;
ISAXXMLReader
*
reader
;
HRESULT
hr
;
HRESULT
hr
;
VARIANT
v
;
VARIANT
v
;
BSTR
str
;
hr
=
CoCreateInstance
(
&
CLSID_SAXXMLReader
,
NULL
,
CLSCTX_INPROC_SERVER
,
hr
=
CoCreateInstance
(
&
CLSID_SAXXMLReader
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_ISAXXMLReader
,
(
void
**
)
&
reader
);
&
IID_ISAXXMLReader
,
(
void
**
)
&
reader
);
...
@@ -2659,6 +2660,13 @@ static void test_saxreader_properties(void)
...
@@ -2659,6 +2660,13 @@ static void test_saxreader_properties(void)
hr
=
ISAXXMLReader_parse
(
reader
,
v
);
hr
=
ISAXXMLReader_parse
(
reader
,
v
);
EXPECT_HR
(
hr
,
S_OK
);
EXPECT_HR
(
hr
,
S_OK
);
/* VT_BSTR|VT_BYREF input type */
str
=
_bstr_
(
"<?xml version=
\"
1.0
\"
?><element></element>"
);
V_VT
(
&
v
)
=
VT_BSTR
|
VT_BYREF
;
V_BSTRREF
(
&
v
)
=
&
str
;
hr
=
ISAXXMLReader_parse
(
reader
,
v
);
EXPECT_HR
(
hr
,
S_OK
);
V_VT
(
&
v
)
=
VT_EMPTY
;
V_VT
(
&
v
)
=
VT_EMPTY
;
V_BSTR
(
&
v
)
=
(
void
*
)
0xdeadbeef
;
V_BSTR
(
&
v
)
=
(
void
*
)
0xdeadbeef
;
hr
=
ISAXXMLReader_getProperty
(
reader
,
_bstr_
(
"xmldecl-version"
),
&
v
);
hr
=
ISAXXMLReader_getProperty
(
reader
,
_bstr_
(
"xmldecl-version"
),
&
v
);
...
...
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