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
b8bf372e
Commit
b8bf372e
authored
Feb 09, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Make sure return value is used (LLVM/Clang).
parent
7868edd8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
safearray.c
dlls/oleaut32/tests/safearray.c
+3
-1
No files found.
dlls/oleaut32/tests/safearray.c
View file @
b8bf372e
...
@@ -595,9 +595,10 @@ static void test_safearray(void)
...
@@ -595,9 +595,10 @@ static void test_safearray(void)
ok
(
hres
==
E_INVALIDARG
,
"SafeArraySetIID of non IID capable safearray did not return E_INVALIDARG, but %x
\n
"
,
hres
);
ok
(
hres
==
E_INVALIDARG
,
"SafeArraySetIID of non IID capable safearray did not return E_INVALIDARG, but %x
\n
"
,
hres
);
hres
=
SafeArrayAllocDescriptor
(
1
,
&
a
);
hres
=
SafeArrayAllocDescriptor
(
1
,
&
a
);
ok
(
hres
==
S_OK
,
"SafeArrayAllocDescriptor should return S_OK, but got %x
\n
"
,
hres
);
ok
((
a
->
fFeatures
&
FADF_HAVEIID
)
==
0
,
"newly allocated descriptor with SAAD should not have FADF_HAVEIID
\n
"
);
ok
((
a
->
fFeatures
&
FADF_HAVEIID
)
==
0
,
"newly allocated descriptor with SAAD should not have FADF_HAVEIID
\n
"
);
hres
=
pSafeArraySetIID
(
a
,
&
iid
);
hres
=
pSafeArraySetIID
(
a
,
&
iid
);
ok
(
hres
==
E_INVALIDARG
,
"SafeArraySetIID of newly allocated descriptor with SAAD should return E_INVALIDARG, but %x
\n
"
,
hres
);
ok
(
hres
==
E_INVALIDARG
,
"SafeArraySetIID of newly allocated descriptor with SAAD should return E_INVALIDARG, but
got
%x
\n
"
,
hres
);
hres
=
SafeArrayDestroyDescriptor
(
a
);
hres
=
SafeArrayDestroyDescriptor
(
a
);
ok
(
hres
==
S_OK
,
"SADD failed with hres %x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"SADD failed with hres %x
\n
"
,
hres
);
...
@@ -609,6 +610,7 @@ static void test_safearray(void)
...
@@ -609,6 +610,7 @@ static void test_safearray(void)
for
(
i
=
0
;
i
<
sizeof
(
vttypes
)
/
sizeof
(
vttypes
[
0
]);
i
++
)
{
for
(
i
=
0
;
i
<
sizeof
(
vttypes
)
/
sizeof
(
vttypes
[
0
]);
i
++
)
{
a
=
NULL
;
a
=
NULL
;
hres
=
pSafeArrayAllocDescriptorEx
(
vttypes
[
i
].
vt
,
1
,
&
a
);
hres
=
pSafeArrayAllocDescriptorEx
(
vttypes
[
i
].
vt
,
1
,
&
a
);
ok
(
hres
==
S_OK
,
"SafeArrayAllocDescriptorEx gave hres 0x%x
\n
"
,
hres
);
ok
(
a
->
fFeatures
==
vttypes
[
i
].
expflags
,
"SAADE(%d) resulted with flags %x, expected %x
\n
"
,
vttypes
[
i
].
vt
,
a
->
fFeatures
,
vttypes
[
i
].
expflags
);
ok
(
a
->
fFeatures
==
vttypes
[
i
].
expflags
,
"SAADE(%d) resulted with flags %x, expected %x
\n
"
,
vttypes
[
i
].
vt
,
a
->
fFeatures
,
vttypes
[
i
].
expflags
);
if
(
a
->
fFeatures
&
FADF_HAVEIID
)
{
if
(
a
->
fFeatures
&
FADF_HAVEIID
)
{
hres
=
pSafeArrayGetIID
(
a
,
&
iid
);
hres
=
pSafeArrayGetIID
(
a
,
&
iid
);
...
...
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