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

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-05-30 21:15:40 +02:00 committed by Alexandre Julliard
parent 840d1e153d
commit c9f65211bb
1 changed files with 1 additions and 1 deletions

View File

@ -663,7 +663,7 @@ static void test_single_source(TW_IDENTITY *appid, TW_IDENTITY *source)
UINT16 *u = (UINT16 *) a->ItemList;
trace("%d Capabilities:\n", a->NumItems);
for (i = 0; i < a->NumItems; i++)
if (u[i] < sizeof(capabilities) / sizeof(capabilities[0]))
if (u[i] < ARRAY_SIZE(capabilities))
{
capabilities[u[i]] = 1;
trace(" %d: 0x%x\n", i, u[i]);