d3d10/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-05-29 01:05:23 +02:00 committed by Alexandre Julliard
parent 76cd53be1a
commit e1ad81b360
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ static void test_stateblock_mask(void)
ok(hr == E_INVALIDARG, "Got unexpect hr %#x.\n", hr);
hr = D3D10StateBlockMaskEnableCapture(NULL, D3D10_DST_VS, 0, 1);
ok(hr == E_INVALIDARG, "Got unexpect hr %#x.\n", hr);
for (i = 0; i < sizeof(capture_test) / sizeof(*capture_test); ++i)
for (i = 0; i < ARRAY_SIZE(capture_test); ++i)
{
memset(&result, 0xff, sizeof(result));
hr = D3D10StateBlockMaskDisableCapture(&result, D3D10_DST_VS_SHADER_RESOURCES,

View File

@ -2425,7 +2425,7 @@ static void test_effect_constant_buffer_stride(void)
hr = create_effect(fx_test_ecbs, 0, device, NULL, &effect);
ok(SUCCEEDED(hr), "D3D10CreateEffectFromMemory failed (%x)\n", hr);
for (i=0; i<sizeof(tv_ecbs)/sizeof(tv_ecbs[0]); i++)
for (i=0; i<ARRAY_SIZE(tv_ecbs); i++)
{
constantbuffer = effect->lpVtbl->GetConstantBufferByIndex(effect, i);
type = constantbuffer->lpVtbl->GetType(constantbuffer);