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
6c2bda6e
Commit
6c2bda6e
authored
Oct 14, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Use BOOL variable for ShowCursor return value (PVS-Studio).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6410e8a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
device.c
dlls/d3d9/tests/device.c
+8
-8
No files found.
dlls/d3d9/tests/device.c
View file @
6c2bda6e
...
...
@@ -1638,12 +1638,12 @@ static void test_cursor(void)
ok
(
SUCCEEDED
(
hr
),
"Failed to create cursor surface, hr %#x.
\n
"
,
hr
);
/* Initially hidden */
hr
=
IDirect3DDevice9_ShowCursor
(
device
,
TRUE
);
ok
(
hr
==
FALSE
,
"IDirect3DDevice9_ShowCursor returned %08x
\n
"
,
hr
);
ret
=
IDirect3DDevice9_ShowCursor
(
device
,
TRUE
);
ok
(
!
ret
,
"IDirect3DDevice9_ShowCursor returned %d
\n
"
,
ret
);
/* Not enabled without a surface*/
hr
=
IDirect3DDevice9_ShowCursor
(
device
,
TRUE
);
ok
(
hr
==
FALSE
,
"IDirect3DDevice9_ShowCursor returned %08x
\n
"
,
hr
);
ret
=
IDirect3DDevice9_ShowCursor
(
device
,
TRUE
);
ok
(
!
ret
,
"IDirect3DDevice9_ShowCursor returned %d
\n
"
,
ret
);
/* Fails */
hr
=
IDirect3DDevice9_SetCursorProperties
(
device
,
0
,
0
,
NULL
);
...
...
@@ -1661,12 +1661,12 @@ static void test_cursor(void)
ok
(
info
.
hCursor
==
cur
,
"The cursor handle is %p
\n
"
,
info
.
hCursor
);
/* unchanged */
/* Still hidden */
hr
=
IDirect3DDevice9_ShowCursor
(
device
,
TRUE
);
ok
(
hr
==
FALSE
,
"IDirect3DDevice9_ShowCursor returned %08x
\n
"
,
hr
);
ret
=
IDirect3DDevice9_ShowCursor
(
device
,
TRUE
);
ok
(
!
ret
,
"IDirect3DDevice9_ShowCursor returned %d
\n
"
,
ret
);
/* Enabled now*/
hr
=
IDirect3DDevice9_ShowCursor
(
device
,
TRUE
);
ok
(
hr
==
TRUE
,
"IDirect3DDevice9_ShowCursor returned %08x
\n
"
,
hr
);
ret
=
IDirect3DDevice9_ShowCursor
(
device
,
TRUE
);
ok
(
ret
,
"IDirect3DDevice9_ShowCursor returned %d
\n
"
,
ret
);
memset
(
&
info
,
0
,
sizeof
(
info
));
info
.
cbSize
=
sizeof
(
info
);
...
...
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