ddraw/tests: Use the available ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-02-20 23:57:14 +01:00 committed by Alexandre Julliard
parent 417983f2da
commit f450e8e32f
2 changed files with 2 additions and 2 deletions

View File

@ -14265,7 +14265,7 @@ static void test_map_synchronisation(void)
tri_count = ((tri_count + 2 + 3) & ~3) - 2;
vb_desc.dwNumVertices = tri_count + 2;
for (i = 0; i < sizeof(tests) / sizeof(*tests); ++i)
for (i = 0; i < ARRAY_SIZE(tests); ++i)
{
hr = IDirect3D3_CreateVertexBuffer(d3d, &vb_desc, &buffer, 0, NULL);
ok(SUCCEEDED(hr), "Failed to create vertex buffer, hr %#x.\n", hr);

View File

@ -13640,7 +13640,7 @@ static void test_map_synchronisation(void)
tri_count = ((tri_count + 2 + 3) & ~3) - 2;
vb_desc.dwNumVertices = tri_count + 2;
for (i = 0; i < sizeof(tests) / sizeof(*tests); ++i)
for (i = 0; i < ARRAY_SIZE(tests); ++i)
{
hr = IDirect3D7_CreateVertexBuffer(d3d, &vb_desc, &buffer, 0);
ok(SUCCEEDED(hr), "Failed to create vertex buffer, hr %#x.\n", hr);