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
9c823d04
Commit
9c823d04
authored
Oct 02, 2012
by
Nozomi Kodama
Committed by
Alexandre Julliard
Oct 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36/tests: Avoid a potential out of bound access.
parent
584c2405
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
math.c
dlls/d3dx9_36/tests/math.c
+2
-2
No files found.
dlls/d3dx9_36/tests/math.c
View file @
9c823d04
...
...
@@ -2818,10 +2818,10 @@ static void test_D3DXSHRotateZ(void)
{
/* order = 0 or order = 1 behaves like order = D3DXSH_MINORDER */
square
=
(
order
<=
D3DXSH_MINORDER
)
?
D3DXSH_MINORDER
*
D3DXSH_MINORDER
:
order
*
order
;
expected
=
table
[
36
*
j
+
i
];
if
(
i
>=
square
||
(
(
order
>=
D3DXSH_MAXORDER
)
&&
(
i
>=
D3DXSH_MAXORDER
*
D3DXSH_MAXORDER
)
)
)
expected
=
(
i
+
1
.
0
f
)
*
(
i
+
1
.
0
f
);
else
expected
=
table
[
36
*
j
+
i
];
ok
(
relative_error
(
out
[
i
],
expected
)
<
admitted_error
,
"angle %f, order %u index %u, Expected %f, received %f
\n
"
,
angle
[
j
],
order
,
i
,
expected
,
out
[
i
]);
}
}
...
...
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