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
bd9d4108
Commit
bd9d4108
authored
Mar 04, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Actually test some return values (PVS-Studio).
parent
148d6e3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+2
-0
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+2
-0
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+2
-0
No files found.
dlls/ddraw/tests/ddraw2.c
View file @
bd9d4108
...
...
@@ -972,6 +972,7 @@ static void test_depth_blit(void)
memset
(
&
ddsd_existing
,
0
,
sizeof
(
ddsd_existing
));
ddsd_existing
.
dwSize
=
sizeof
(
ddsd_existing
);
hr
=
IDirectDrawSurface_GetSurfaceDesc
(
ds1
,
&
ddsd_existing
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get surface desc, hr %#x.
\n
"
,
hr
);
ddsd_new
.
dwFlags
=
DDSD_CAPS
|
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_PIXELFORMAT
;
ddsd_new
.
ddsCaps
.
dwCaps
=
DDSCAPS_ZBUFFER
;
ddsd_new
.
dwWidth
=
ddsd_existing
.
dwWidth
;
...
...
@@ -3733,6 +3734,7 @@ static void test_lighting_interface_versions(void)
ok
(
SUCCEEDED
(
hr
),
"Failed to begin scene, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice2_DrawPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
tests
[
i
].
vertextype
,
tests
[
i
].
data
,
4
,
tests
[
i
].
draw_flags
|
D3DDP_WAIT
);
ok
(
SUCCEEDED
(
hr
),
"Failed to draw, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice2_EndScene
(
device
);
ok
(
SUCCEEDED
(
hr
),
"Failed to end scene, hr %#x.
\n
"
,
hr
);
...
...
dlls/ddraw/tests/ddraw4.c
View file @
bd9d4108
...
...
@@ -1180,6 +1180,7 @@ static void test_depth_blit(void)
memset
(
&
ddsd_existing
,
0
,
sizeof
(
ddsd_existing
));
ddsd_existing
.
dwSize
=
sizeof
(
ddsd_existing
);
hr
=
IDirectDrawSurface4_GetSurfaceDesc
(
ds1
,
&
ddsd_existing
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get surface desc, hr %#x.
\n
"
,
hr
);
ddsd_new
.
dwFlags
=
DDSD_CAPS
|
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_PIXELFORMAT
;
ddsd_new
.
ddsCaps
.
dwCaps
=
DDSCAPS_ZBUFFER
;
ddsd_new
.
dwWidth
=
ddsd_existing
.
dwWidth
;
...
...
@@ -4090,6 +4091,7 @@ static void test_lighting_interface_versions(void)
ok
(
SUCCEEDED
(
hr
),
"Failed to begin scene, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice2_DrawPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
tests
[
i
].
vertextype
,
tests
[
i
].
data
,
4
,
tests
[
i
].
draw_flags
|
D3DDP_WAIT
);
ok
(
SUCCEEDED
(
hr
),
"Failed to draw, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice3_EndScene
(
device
);
ok
(
SUCCEEDED
(
hr
),
"Failed to end scene, hr %#x.
\n
"
,
hr
);
...
...
dlls/ddraw/tests/ddraw7.c
View file @
bd9d4108
...
...
@@ -1090,6 +1090,7 @@ static void test_depth_blit(void)
memset
(
&
ddsd_existing
,
0
,
sizeof
(
ddsd_existing
));
ddsd_existing
.
dwSize
=
sizeof
(
ddsd_existing
);
hr
=
IDirectDrawSurface7_GetSurfaceDesc
(
ds1
,
&
ddsd_existing
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get surface desc, hr %#x.
\n
"
,
hr
);
ddsd_new
.
dwFlags
=
DDSD_CAPS
|
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_PIXELFORMAT
;
ddsd_new
.
ddsCaps
.
dwCaps
=
DDSCAPS_ZBUFFER
;
ddsd_new
.
dwWidth
=
ddsd_existing
.
dwWidth
;
...
...
@@ -3854,6 +3855,7 @@ static void test_lighting_interface_versions(void)
ok
(
SUCCEEDED
(
hr
),
"Failed to begin scene, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice7_DrawPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
tests
[
i
].
vertextype
,
tests
[
i
].
data
,
4
,
tests
[
i
].
draw_flags
|
D3DDP_WAIT
);
ok
(
SUCCEEDED
(
hr
),
"Failed to draw, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice7_EndScene
(
device
);
ok
(
SUCCEEDED
(
hr
),
"Failed to end scene, hr %#x.
\n
"
,
hr
);
...
...
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