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
a9506bf9
Commit
a9506bf9
authored
Mar 11, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Get rid of some redundant NULL checks in D3DXCreateTextTest().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d708f309
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mesh.c
dlls/d3dx9_36/tests/mesh.c
+2
-2
No files found.
dlls/d3dx9_36/tests/mesh.c
View file @
a9506bf9
...
...
@@ -4401,7 +4401,7 @@ static void D3DXCreateTextTest(void)
ok
(
hr
==
D3D_OK
,
"Got result %x, expected %x (D3D_OK)
\n
"
,
hr
,
D3D_OK
);
number_of_vertices
=
d3dxmesh
->
lpVtbl
->
GetNumVertices
(
d3dxmesh
);
number_of_faces
=
d3dxmesh
->
lpVtbl
->
GetNumFaces
(
d3dxmesh
);
if
(
SUCCEEDED
(
hr
)
&&
d3dxmesh
)
d3dxmesh
->
lpVtbl
->
Release
(
d3dxmesh
);
d3dxmesh
->
lpVtbl
->
Release
(
d3dxmesh
);
hr
=
D3DXCreateTextA
(
device
,
hdc
,
"wine"
,
0
.
0
f
,
0
.
4
f
,
&
d3dxmesh
,
NULL
,
NULL
);
ok
(
hr
==
D3D_OK
,
"Got result %x, expected %x (D3D_OK)
\n
"
,
hr
,
D3D_OK
);
...
...
@@ -4411,7 +4411,7 @@ static void D3DXCreateTextTest(void)
ok
(
number_of_faces
==
d3dxmesh
->
lpVtbl
->
GetNumFaces
(
d3dxmesh
),
"Got %d faces, expected %d
\n
"
,
d3dxmesh
->
lpVtbl
->
GetNumVertices
(
d3dxmesh
),
number_of_faces
);
if
(
SUCCEEDED
(
hr
)
&&
d3dxmesh
)
d3dxmesh
->
lpVtbl
->
Release
(
d3dxmesh
);
d3dxmesh
->
lpVtbl
->
Release
(
d3dxmesh
);
if
(
0
)
{
...
...
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