d3dx9/tests: Use ARRAY_SIZE in test_D3DXSHEvalDirection().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-05-05 13:40:34 +02:00 committed by Alexandre Julliard
parent ce50cded81
commit 1ff0058566
1 changed files with 2 additions and 2 deletions

View File

@ -2796,13 +2796,13 @@ static void test_D3DXSHEvalDirection(void)
for (order = 0; order <= D3DXSH_MAXORDER + 1; order++)
{
for (i = 0; i < 49; i++)
for (i = 0; i < ARRAY_SIZE(a); ++i)
a[i] = 1.5f + i;
received_ptr = D3DXSHEvalDirection(a, order, &d);
ok(received_ptr == a, "Expected %p, received %p\n", a, received_ptr);
for (i = 0; i < 49; i++)
for (i = 0; i < ARRAY_SIZE(a); ++i)
{
/* if the order is < D3DXSH_MINORDER or order > D3DXSH_MAXORDER or
* the index of the element is greater than order * order - 1,