Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c9f65211
Commit
c9f65211
authored
May 30, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
840d1e15
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dsm.c
dlls/twain_32/tests/dsm.c
+1
-1
No files found.
dlls/twain_32/tests/dsm.c
View file @
c9f65211
...
...
@@ -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
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment