Michael Stefaniuc : twain_32/tests: Use the available ARRAY_SIZE() macro.
Alexandre Julliard
julliard at winehq.org
Thu May 31 15:56:55 CDT 2018
Module: wine
Branch: master
Commit: c9f65211bba07bd094516515bcfc32bd6fa035d9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c9f65211bba07bd094516515bcfc32bd6fa035d9
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Wed May 30 21:15:40 2018 +0200
twain_32/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/twain_32/tests/dsm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/twain_32/tests/dsm.c b/dlls/twain_32/tests/dsm.c
index ab6e84f..1e9764d 100644
--- a/dlls/twain_32/tests/dsm.c
+++ b/dlls/twain_32/tests/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]);
More information about the wine-cvs
mailing list