[TWAIN_32_WINETEST] Sync with Wine Staging 4.0. CORE-15682

This commit is contained in:
Amine Khaldi 2019-02-04 13:03:56 +01:00
parent 9622551c51
commit f4c8f8de72

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]);