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
d024b33c
Commit
d024b33c
authored
Jan 03, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Add some return value checks (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c4ad7391
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
clipboard.c
dlls/ole32/tests/clipboard.c
+8
-4
No files found.
dlls/ole32/tests/clipboard.c
View file @
d024b33c
...
@@ -1000,7 +1000,8 @@ static void test_set_clipboard(void)
...
@@ -1000,7 +1000,8 @@ static void test_set_clipboard(void)
test_cf_dataobject
(
NULL
);
test_cf_dataobject
(
NULL
);
ok
(
OleSetClipboard
(
NULL
)
==
S_OK
,
"failed to clear clipboard, hr = 0x%08x
\n
"
,
hr
);
hr
=
OleSetClipboard
(
NULL
);
ok
(
hr
==
S_OK
,
"Failed to clear clipboard, hr = 0x%08x
\n
"
,
hr
);
OpenClipboard
(
NULL
);
OpenClipboard
(
NULL
);
h
=
GetClipboardData
(
cf_onemore
);
h
=
GetClipboardData
(
cf_onemore
);
...
@@ -1180,7 +1181,8 @@ static void test_consumer_refs(void)
...
@@ -1180,7 +1181,8 @@ static void test_consumer_refs(void)
ok
(
get1
!=
get2
,
"data objects match
\n
"
);
ok
(
get1
!=
get2
,
"data objects match
\n
"
);
OleSetClipboard
(
NULL
);
hr
=
OleSetClipboard
(
NULL
);
ok
(
hr
==
S_OK
,
"Failed to clear clipboard, hr %#x.
\n
"
,
hr
);
hr
=
OleGetClipboard
(
&
get3
);
hr
=
OleGetClipboard
(
&
get3
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
@@ -1260,7 +1262,8 @@ static void test_consumer_refs(void)
...
@@ -1260,7 +1262,8 @@ static void test_consumer_refs(void)
refs
=
count_refs
(
src2
);
refs
=
count_refs
(
src2
);
ok
(
refs
==
old_refs
+
1
,
"%d %d
\n
"
,
refs
,
old_refs
);
ok
(
refs
==
old_refs
+
1
,
"%d %d
\n
"
,
refs
,
old_refs
);
OleSetClipboard
(
NULL
);
hr
=
OleSetClipboard
(
NULL
);
ok
(
hr
==
S_OK
,
"Failed to clear clipboard, hr %#x.
\n
"
,
hr
);
refs
=
count_refs
(
src2
);
refs
=
count_refs
(
src2
);
ok
(
refs
==
2
,
"%d
\n
"
,
refs
);
ok
(
refs
==
2
,
"%d
\n
"
,
refs
);
...
@@ -1274,7 +1277,8 @@ static void test_consumer_refs(void)
...
@@ -1274,7 +1277,8 @@ static void test_consumer_refs(void)
old_refs
=
count_refs
(
src
);
old_refs
=
count_refs
(
src
);
ok
(
old_refs
==
1
,
"%d
\n
"
,
old_refs
);
ok
(
old_refs
==
1
,
"%d
\n
"
,
old_refs
);
OleSetClipboard
(
src
);
hr
=
OleSetClipboard
(
src
);
ok
(
hr
==
S_OK
,
"Failed to clear clipboard, hr %#x.
\n
"
,
hr
);
refs
=
count_refs
(
src
);
refs
=
count_refs
(
src
);
ok
(
refs
>
old_refs
,
"%d %d
\n
"
,
refs
,
old_refs
);
ok
(
refs
>
old_refs
,
"%d %d
\n
"
,
refs
,
old_refs
);
...
...
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