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
c45609f1
Commit
c45609f1
authored
Oct 16, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Check some more return values (LLVM/Clang).
parent
f4005c37
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
d3d.c
dlls/ddraw/tests/d3d.c
+5
-0
dsurface.c
dlls/ddraw/tests/dsurface.c
+1
-0
visual.c
dlls/ddraw/tests/visual.c
+2
-0
No files found.
dlls/ddraw/tests/d3d.c
View file @
c45609f1
...
...
@@ -961,6 +961,7 @@ static BOOL D3D1_createObjects(void)
ddsd
.
dwWidth
=
256
;
ddsd
.
dwHeight
=
256
;
hr
=
IDirectDraw_CreateSurface
(
DirectDraw1
,
&
ddsd
,
&
Surface1
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"IDirectDraw_CreateSurface returned %#x.
\n
"
,
hr
);
if
(
!
Surface1
)
{
skip
(
"DDSCAPS_3DDEVICE surface not available
\n
"
);
return
FALSE
;
...
...
@@ -1388,6 +1389,7 @@ static void Direct3D1Test(void)
vp_data
.
dvScaleX
=
1
;
vp_data
.
dvScaleY
=
1
;
hr
=
IDirect3DViewport_SetViewport
(
Viewport
,
&
vp_data
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DViewport_SetViewport returned %#x.
\n
"
,
hr
);
i
=
12345
;
hr
=
IDirect3DViewport_TransformVertices
(
Viewport
,
sizeof
(
offscreentest
)
/
sizeof
(
offscreentest
[
0
]),
&
transformdata
,
D3DTRANSFORM_CLIPPED
,
...
...
@@ -1397,6 +1399,7 @@ static void Direct3D1Test(void)
vp_data
.
dwWidth
=
256
;
vp_data
.
dwHeight
=
256
;
hr
=
IDirect3DViewport_SetViewport
(
Viewport
,
&
vp_data
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DViewport_SetViewport returned %#x.
\n
"
,
hr
);
i
=
12345
;
hr
=
IDirect3DViewport_TransformVertices
(
Viewport
,
sizeof
(
offscreentest
)
/
sizeof
(
offscreentest
[
0
]),
&
transformdata
,
D3DTRANSFORM_CLIPPED
,
...
...
@@ -2598,10 +2601,12 @@ static void DeviceLoadTest(void)
memset
(
&
ddsd
,
0
,
sizeof
(
DDSURFACEDESC2
));
ddsd
.
dwSize
=
sizeof
(
ddsd
);
hr
=
IDirectDrawSurface7_GetSurfaceDesc
(
texture_levels
[
0
][
i1
],
&
ddsd
);
ok
(
SUCCEEDED
(
hr
),
"IDirectDrawSurface7_GetSurfaceDesc returned %#x.
\n
"
,
hr
);
memset
(
&
ddsd2
,
0
,
sizeof
(
DDSURFACEDESC2
));
ddsd2
.
dwSize
=
sizeof
(
ddsd2
);
hr
=
IDirectDrawSurface7_GetSurfaceDesc
(
texture_levels
[
1
][
i
],
&
ddsd2
);
ok
(
SUCCEEDED
(
hr
),
"IDirectDrawSurface7_GetSurfaceDesc returned %#x.
\n
"
,
hr
);
if
(
ddsd
.
dwWidth
==
ddsd2
.
dwWidth
&&
ddsd
.
dwHeight
==
ddsd2
.
dwHeight
)
{
...
...
dlls/ddraw/tests/dsurface.c
View file @
c45609f1
...
...
@@ -2433,6 +2433,7 @@ static void PrivateDataTest(void)
ref2
=
getref
((
IUnknown
*
)
lpDD
);
ok
(
ref2
==
ref
+
1
,
"Object reference is %d, expected %d
\n
"
,
ref2
,
ref
+
1
);
hr
=
IDirectDrawSurface7_FreePrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
);
ok
(
SUCCEEDED
(
hr
),
"IDirectDrawSurface7_FreePrivateData returned %#x.
\n
"
,
hr
);
ref2
=
getref
((
IUnknown
*
)
lpDD
);
ok
(
ref2
==
ref
,
"Object reference is %d, expected %d
\n
"
,
ref2
,
ref
);
...
...
dlls/ddraw/tests/visual.c
View file @
c45609f1
...
...
@@ -615,10 +615,12 @@ static void offscreen_test(IDirect3DDevice7 *device)
out:
hr
=
IDirect3DDevice7_SetTexture
(
device
,
0
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DDevice7_SetTexture returned %#x.
\n
"
,
hr
);
/* restore things */
if
(
backbuffer
)
{
hr
=
IDirect3DDevice7_SetRenderTarget
(
device
,
backbuffer
,
0
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DDevice7_SetRenderTarget returned %#x.
\n
"
,
hr
);
IDirectDrawSurface7_Release
(
backbuffer
);
}
if
(
offscreen
)
{
...
...
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