https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f4c8f8de724b2a34d46e3…
commit f4c8f8de724b2a34d46e345afe50d685e10c6edb
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Mon Feb 4 13:03:56 2019 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Mon Feb 4 13:03:56 2019 +0100
[TWAIN_32_WINETEST] Sync with Wine Staging 4.0. CORE-15682
---
modules/rostests/winetests/twain_32/dsm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/rostests/winetests/twain_32/dsm.c
b/modules/rostests/winetests/twain_32/dsm.c
index ab6e84fd6a..1e9764dccb 100644
--- a/modules/rostests/winetests/twain_32/dsm.c
+++ b/modules/rostests/winetests/twain_32/dsm.c
@@ -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]);