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
9ac18eab
Commit
9ac18eab
authored
Aug 06, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Fixed memset of a -2 32bit value (Coverity).
parent
a869964b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
mesh.c
dlls/d3dx9_36/tests/mesh.c
+4
-3
No files found.
dlls/d3dx9_36/tests/mesh.c
View file @
9ac18eab
...
@@ -5384,7 +5384,7 @@ static void test_convert_adjacency_to_point_reps(void)
...
@@ -5384,7 +5384,7 @@ static void test_convert_adjacency_to_point_reps(void)
}
}
/* Convert adjacency to point representation */
/* Convert adjacency to point representation */
memset
(
point_reps
,
-
1
,
tc
[
i
].
num_vertices
*
sizeof
(
*
point_reps
))
;
for
(
j
=
0
;
j
<
tc
[
i
].
num_vertices
;
j
++
)
point_reps
[
j
]
=
-
1
;
hr
=
mesh
->
lpVtbl
->
ConvertAdjacencyToPointReps
(
mesh
,
tc
[
i
].
adjacency
,
point_reps
);
hr
=
mesh
->
lpVtbl
->
ConvertAdjacencyToPointReps
(
mesh
,
tc
[
i
].
adjacency
,
point_reps
);
ok
(
hr
==
D3D_OK
,
"ConvertAdjacencyToPointReps failed case %d. "
ok
(
hr
==
D3D_OK
,
"ConvertAdjacencyToPointReps failed case %d. "
"Got %x expected D3D_OK
\n
"
,
i
,
hr
);
"Got %x expected D3D_OK
\n
"
,
i
,
hr
);
...
@@ -5921,7 +5921,8 @@ static void test_convert_point_reps_to_adjacency(void)
...
@@ -5921,7 +5921,8 @@ static void test_convert_point_reps_to_adjacency(void)
}
}
/* Convert point representation to adjacency*/
/* Convert point representation to adjacency*/
memset
(
adjacency
,
-
2
,
VERTS_PER_FACE
*
tc
[
i
].
num_faces
*
sizeof
(
*
adjacency
));
for
(
j
=
0
;
j
<
VERTS_PER_FACE
*
tc
[
i
].
num_faces
;
j
++
)
adjacency
[
j
]
=
-
2
;
hr
=
mesh
->
lpVtbl
->
ConvertPointRepsToAdjacency
(
mesh
,
tc
[
i
].
point_reps
,
adjacency
);
hr
=
mesh
->
lpVtbl
->
ConvertPointRepsToAdjacency
(
mesh
,
tc
[
i
].
point_reps
,
adjacency
);
ok
(
hr
==
D3D_OK
,
"ConvertPointRepsToAdjacency failed case %d. "
ok
(
hr
==
D3D_OK
,
"ConvertPointRepsToAdjacency failed case %d. "
"Got %x expected D3D_OK
\n
"
,
i
,
hr
);
"Got %x expected D3D_OK
\n
"
,
i
,
hr
);
...
@@ -5935,7 +5936,7 @@ static void test_convert_point_reps_to_adjacency(void)
...
@@ -5935,7 +5936,7 @@ static void test_convert_point_reps_to_adjacency(void)
}
}
/* NULL point representation is considered identity. */
/* NULL point representation is considered identity. */
memset
(
adjacency
,
-
2
,
VERTS_PER_FACE
*
tc
[
i
].
num_faces
*
sizeof
(
*
adjacency
))
;
for
(
j
=
0
;
j
<
VERTS_PER_FACE
*
tc
[
i
].
num_faces
;
j
++
)
adjacency
[
j
]
=
-
2
;
hr
=
mesh_null_check
->
lpVtbl
->
ConvertPointRepsToAdjacency
(
mesh
,
NULL
,
adjacency
);
hr
=
mesh_null_check
->
lpVtbl
->
ConvertPointRepsToAdjacency
(
mesh
,
NULL
,
adjacency
);
ok
(
hr
==
D3D_OK
,
"ConvertPointRepsToAdjacency NULL point_reps. "
ok
(
hr
==
D3D_OK
,
"ConvertPointRepsToAdjacency NULL point_reps. "
"Got %x expected D3D_OK
\n
"
,
hr
);
"Got %x expected D3D_OK
\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