[TWAIN_32_WINETEST] Sync with Wine Staging 4.0. CORE-15682
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 4 Feb 2019 12:03:56 +0000 (13:03 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 4 Feb 2019 12:03:56 +0000 (13:03 +0100)
modules/rostests/winetests/twain_32/dsm.c

index ab6e84f..1e9764d 100644 (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]);