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
87fabd10
Commit
87fabd10
authored
Aug 17, 2012
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Aug 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Add VT_BSTR to VT_UI2|VT_ARRAY test.
parent
ae0b830c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
safearray.c
dlls/oleaut32/tests/safearray.c
+10
-1
No files found.
dlls/oleaut32/tests/safearray.c
View file @
87fabd10
...
...
@@ -294,7 +294,7 @@ static void test_safearray(void)
LONG
indices
[
2
];
HRESULT
hres
;
SAFEARRAYBOUND
bound
,
bounds
[
2
];
VARIANT
v
;
VARIANT
v
,
d
;
LPVOID
data
;
IID
iid
;
VARTYPE
vt
;
...
...
@@ -557,6 +557,15 @@ static void test_safearray(void)
ok
(
V_BSTR
(
&
v
)[
0
]
==
0x6548
,
"First letter are not 'He', but %x
\n
"
,
V_BSTR
(
&
v
)[
0
]);
VariantClear
(
&
v
);
VariantInit
(
&
d
);
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
SysAllocStringLen
(
NULL
,
0
);
hres
=
VariantChangeTypeEx
(
&
d
,
&
v
,
0
,
0
,
VT_UI1
|
VT_ARRAY
);
ok
(
hres
==
S_OK
,
"CTE VT_BSTR -> VT_UI1|VT_ARRAY failed with %x
\n
"
,
hres
);
ok
(
V_VT
(
&
d
)
==
(
VT_UI1
|
VT_ARRAY
),
"CTE BSTR -> VT_UI1|VT_ARRAY did not return VT_UI1|VT_ARRAY, but %d.v
\n
"
,
V_VT
(
&
v
));
VariantClear
(
&
v
);
VariantClear
(
&
d
);
/* check locking functions */
a
=
SafeArrayCreate
(
VT_I4
,
1
,
&
bound
);
ok
(
a
!=
NULL
,
"SAC should not fail
\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