Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
b6dbbfe6
Commit
b6dbbfe6
authored
Mar 05, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
twain_32/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0ff329c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
22 deletions
+21
-22
Makefile.in
dlls/twain_32/tests/Makefile.in
+0
-1
dsm.c
dlls/twain_32/tests/dsm.c
+21
-21
No files found.
dlls/twain_32/tests/Makefile.in
View file @
b6dbbfe6
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
twain_32.dll
TESTDLL
=
twain_32.dll
IMPORTS
=
user32 gdi32
IMPORTS
=
user32 gdi32
...
...
dlls/twain_32/tests/dsm.c
View file @
b6dbbfe6
...
@@ -47,7 +47,7 @@ static BOOL dsm_RegisterWindowClasses(void)
...
@@ -47,7 +47,7 @@ static BOOL dsm_RegisterWindowClasses(void)
cls
.
lpszClassName
=
"TWAIN_dsm_class"
;
cls
.
lpszClassName
=
"TWAIN_dsm_class"
;
rc
=
RegisterClassA
(
&
cls
);
rc
=
RegisterClassA
(
&
cls
);
ok
(
rc
,
"RegisterClassA failed: le=%u
\n
"
,
GetLastError
());
ok
(
rc
,
"RegisterClassA failed: le=%
l
u
\n
"
,
GetLastError
());
return
rc
;
return
rc
;
}
}
...
@@ -114,9 +114,9 @@ static void check_get(TW_CAPABILITY *pCapability, TW_INT32 actual_support,
...
@@ -114,9 +114,9 @@ static void check_get(TW_CAPABILITY *pCapability, TW_INT32 actual_support,
if
(
pCapability
->
ConType
==
TWON_ONEVALUE
)
if
(
pCapability
->
ConType
==
TWON_ONEVALUE
)
{
{
TW_ONEVALUE
*
onev
=
p
;
TW_ONEVALUE
*
onev
=
p
;
ok
(
onev
->
Item
==
orig_value
||
!
(
actual_support
&
TWQC_GETCURRENT
),
"MSG_GET of 0x%x returned 0x%
x, expecting 0x%
x
\n
"
,
ok
(
onev
->
Item
==
orig_value
||
!
(
actual_support
&
TWQC_GETCURRENT
),
"MSG_GET of 0x%x returned 0x%
lx, expecting 0x%l
x
\n
"
,
pCapability
->
Cap
,
onev
->
Item
,
orig_value
);
pCapability
->
Cap
,
onev
->
Item
,
orig_value
);
trace
(
"MSG_GET of 0x%x returned val 0x%x, type %d
\n
"
,
pCapability
->
Cap
,
onev
->
Item
,
onev
->
ItemType
);
trace
(
"MSG_GET of 0x%x returned val 0x%
l
x, type %d
\n
"
,
pCapability
->
Cap
,
onev
->
Item
,
onev
->
ItemType
);
if
(
suggested_set_value
)
if
(
suggested_set_value
)
*
suggested_set_value
=
onev
->
Item
;
*
suggested_set_value
=
onev
->
Item
;
}
}
...
@@ -130,7 +130,7 @@ static void check_get(TW_CAPABILITY *pCapability, TW_INT32 actual_support,
...
@@ -130,7 +130,7 @@ static void check_get(TW_CAPABILITY *pCapability, TW_INT32 actual_support,
p8
=
enumv
->
ItemList
;
p8
=
enumv
->
ItemList
;
p16
=
(
TW_UINT16
*
)
p8
;
p16
=
(
TW_UINT16
*
)
p8
;
p32
=
(
TW_UINT32
*
)
p8
;
p32
=
(
TW_UINT32
*
)
p8
;
trace
(
"MSG_GET of 0x%x returned %d items:
\n
"
,
pCapability
->
Cap
,
enumv
->
NumItems
);
trace
(
"MSG_GET of 0x%x returned %
l
d items:
\n
"
,
pCapability
->
Cap
,
enumv
->
NumItems
);
for
(
i
=
0
;
i
<
enumv
->
NumItems
;
i
++
)
for
(
i
=
0
;
i
<
enumv
->
NumItems
;
i
++
)
{
{
if
(
enumv
->
ItemType
==
TWTY_UINT8
||
enumv
->
ItemType
==
TWTY_INT8
)
if
(
enumv
->
ItemType
==
TWTY_UINT8
||
enumv
->
ItemType
==
TWTY_INT8
)
...
@@ -138,15 +138,15 @@ static void check_get(TW_CAPABILITY *pCapability, TW_INT32 actual_support,
...
@@ -138,15 +138,15 @@ static void check_get(TW_CAPABILITY *pCapability, TW_INT32 actual_support,
if
(
enumv
->
ItemType
==
TWTY_UINT16
||
enumv
->
ItemType
==
TWTY_INT16
)
if
(
enumv
->
ItemType
==
TWTY_UINT16
||
enumv
->
ItemType
==
TWTY_INT16
)
trace
(
" %d: 0x%x
\n
"
,
i
,
p16
[
i
]);
trace
(
" %d: 0x%x
\n
"
,
i
,
p16
[
i
]);
if
(
enumv
->
ItemType
==
TWTY_UINT32
||
enumv
->
ItemType
==
TWTY_INT32
)
if
(
enumv
->
ItemType
==
TWTY_UINT32
||
enumv
->
ItemType
==
TWTY_INT32
)
trace
(
" %d: 0x%x
\n
"
,
i
,
p32
[
i
]);
trace
(
" %d: 0x%
l
x
\n
"
,
i
,
p32
[
i
]);
}
}
if
(
enumv
->
ItemType
==
TWTY_UINT16
||
enumv
->
ItemType
==
TWTY_INT16
)
if
(
enumv
->
ItemType
==
TWTY_UINT16
||
enumv
->
ItemType
==
TWTY_INT16
)
{
{
ok
(
p16
[
enumv
->
CurrentIndex
]
==
orig_value
,
ok
(
p16
[
enumv
->
CurrentIndex
]
==
orig_value
,
"Type 0x%x, values from MSG_GET (0x%x) and MSG_GETCURRENT (0x%x) do not match.
\n
"
,
"Type 0x%x, values from MSG_GET (0x%x) and MSG_GETCURRENT (0x%
l
x) do not match.
\n
"
,
pCapability
->
Cap
,
p16
[
enumv
->
CurrentIndex
],
orig_value
);
pCapability
->
Cap
,
p16
[
enumv
->
CurrentIndex
],
orig_value
);
ok
(
p16
[
enumv
->
DefaultIndex
]
==
default_value
,
ok
(
p16
[
enumv
->
DefaultIndex
]
==
default_value
,
"Type 0x%x, values from MSG_GET (0x%x) and MSG_GETDEFAULT (0x%x) do not match.
\n
"
,
"Type 0x%x, values from MSG_GET (0x%x) and MSG_GETDEFAULT (0x%
l
x) do not match.
\n
"
,
pCapability
->
Cap
,
p16
[
enumv
->
DefaultIndex
],
default_value
);
pCapability
->
Cap
,
p16
[
enumv
->
DefaultIndex
],
default_value
);
if
(
suggested_set_value
)
if
(
suggested_set_value
)
*
suggested_set_value
=
p16
[(
enumv
->
CurrentIndex
+
1
)
%
enumv
->
NumItems
];
*
suggested_set_value
=
p16
[(
enumv
->
CurrentIndex
+
1
)
%
enumv
->
NumItems
];
...
@@ -154,10 +154,10 @@ static void check_get(TW_CAPABILITY *pCapability, TW_INT32 actual_support,
...
@@ -154,10 +154,10 @@ static void check_get(TW_CAPABILITY *pCapability, TW_INT32 actual_support,
if
(
enumv
->
ItemType
==
TWTY_UINT32
||
enumv
->
ItemType
==
TWTY_INT32
)
if
(
enumv
->
ItemType
==
TWTY_UINT32
||
enumv
->
ItemType
==
TWTY_INT32
)
{
{
ok
(
p32
[
enumv
->
CurrentIndex
]
==
orig_value
,
ok
(
p32
[
enumv
->
CurrentIndex
]
==
orig_value
,
"Type 0x%x, values from MSG_GET (0x%
x) and MSG_GETCURRENT (0x%
x) do not match.
\n
"
,
"Type 0x%x, values from MSG_GET (0x%
lx) and MSG_GETCURRENT (0x%l
x) do not match.
\n
"
,
pCapability
->
Cap
,
p32
[
enumv
->
CurrentIndex
],
orig_value
);
pCapability
->
Cap
,
p32
[
enumv
->
CurrentIndex
],
orig_value
);
ok
(
p32
[
enumv
->
DefaultIndex
]
==
default_value
,
ok
(
p32
[
enumv
->
DefaultIndex
]
==
default_value
,
"Type 0x%x, values from MSG_GET (0x%
x) and MSG_GETDEFAULT (0x%
x) do not match.
\n
"
,
"Type 0x%x, values from MSG_GET (0x%
lx) and MSG_GETDEFAULT (0x%l
x) do not match.
\n
"
,
pCapability
->
Cap
,
p32
[
enumv
->
DefaultIndex
],
default_value
);
pCapability
->
Cap
,
p32
[
enumv
->
DefaultIndex
],
default_value
);
if
(
suggested_set_value
)
if
(
suggested_set_value
)
*
suggested_set_value
=
p32
[(
enumv
->
CurrentIndex
+
1
)
%
enumv
->
NumItems
];
*
suggested_set_value
=
p32
[(
enumv
->
CurrentIndex
+
1
)
%
enumv
->
NumItems
];
...
@@ -192,7 +192,7 @@ static void test_onevalue_cap(TW_IDENTITY *appid, TW_IDENTITY *source, TW_UINT16
...
@@ -192,7 +192,7 @@ static void test_onevalue_cap(TW_IDENTITY *appid, TW_IDENTITY *source, TW_UINT16
return
;
return
;
ok
(
get_onevalue
(
cap
.
hContainer
,
(
TW_UINT32
*
)
&
actual_support
,
NULL
),
"Returned cap.hContainer invalid for QuerySupport on type 0x%x
\n
"
,
captype
);
ok
(
get_onevalue
(
cap
.
hContainer
,
(
TW_UINT32
*
)
&
actual_support
,
NULL
),
"Returned cap.hContainer invalid for QuerySupport on type 0x%x
\n
"
,
captype
);
ok
((
actual_support
&
minimum_support
)
==
minimum_support
,
ok
((
actual_support
&
minimum_support
)
==
minimum_support
,
"Error: minimum support 0x%
x for type 0x%x, got 0x%
x
\n
"
,
minimum_support
,
"Error: minimum support 0x%
lx for type 0x%x, got 0x%l
x
\n
"
,
minimum_support
,
captype
,
actual_support
);
captype
,
actual_support
);
...
@@ -301,7 +301,7 @@ static void test_resolution(TW_IDENTITY *appid, TW_IDENTITY *source, TW_UINT16 c
...
@@ -301,7 +301,7 @@ static void test_resolution(TW_IDENTITY *appid, TW_IDENTITY *source, TW_UINT16 c
return
;
return
;
ok
(
get_onevalue
(
cap
.
hContainer
,
(
TW_UINT32
*
)
&
actual_support
,
NULL
),
"Returned cap.hContainer invalid for QuerySupport on type 0x%x
\n
"
,
captype
);
ok
(
get_onevalue
(
cap
.
hContainer
,
(
TW_UINT32
*
)
&
actual_support
,
NULL
),
"Returned cap.hContainer invalid for QuerySupport on type 0x%x
\n
"
,
captype
);
ok
((
actual_support
&
minimum_support
)
==
minimum_support
,
ok
((
actual_support
&
minimum_support
)
==
minimum_support
,
"Error: minimum support 0x%
x for type 0x%x, got 0x%
x
\n
"
,
minimum_support
,
"Error: minimum support 0x%
lx for type 0x%x, got 0x%l
x
\n
"
,
minimum_support
,
captype
,
actual_support
);
captype
,
actual_support
);
...
@@ -358,7 +358,7 @@ static void test_resolution(TW_IDENTITY *appid, TW_IDENTITY *source, TW_UINT16 c
...
@@ -358,7 +358,7 @@ static void test_resolution(TW_IDENTITY *appid, TW_IDENTITY *source, TW_UINT16 c
TW_RANGE
*
range
;
TW_RANGE
*
range
;
ok
(
cap
.
ConType
==
TWON_RANGE
,
"MSG_GET for ICAP_[XY]RESOLUTION did not return TWON_RANGE, but %d
\n
"
,
cap
.
ConType
);
ok
(
cap
.
ConType
==
TWON_RANGE
,
"MSG_GET for ICAP_[XY]RESOLUTION did not return TWON_RANGE, but %d
\n
"
,
cap
.
ConType
);
range
=
GlobalLock
(
cap
.
hContainer
);
range
=
GlobalLock
(
cap
.
hContainer
);
trace
(
"MSG_GET of 0x%x returned [ItemType %d|MinValue %
d|MaxValue %d|StepSize %d|DefaultValue %d|CurrentValue %
d]:
\n
"
,
trace
(
"MSG_GET of 0x%x returned [ItemType %d|MinValue %
ld|MaxValue %ld|StepSize %ld|DefaultValue %ld|CurrentValue %l
d]:
\n
"
,
cap
.
Cap
,
range
->
ItemType
,
range
->
MinValue
,
range
->
MaxValue
,
range
->
StepSize
,
cap
.
Cap
,
range
->
ItemType
,
range
->
MinValue
,
range
->
MaxValue
,
range
->
StepSize
,
range
->
DefaultValue
,
range
->
CurrentValue
);
range
->
DefaultValue
,
range
->
CurrentValue
);
for
(
new_value
=
range
->
MinValue
;
new_value
<
range
->
MaxValue
;
new_value
+=
range
->
StepSize
)
for
(
new_value
=
range
->
MinValue
;
new_value
<
range
->
MaxValue
;
new_value
+=
range
->
StepSize
)
...
@@ -420,7 +420,7 @@ static void test_physical(TW_IDENTITY *appid, TW_IDENTITY *source, TW_UINT16 cap
...
@@ -420,7 +420,7 @@ static void test_physical(TW_IDENTITY *appid, TW_IDENTITY *source, TW_UINT16 cap
return
;
return
;
ok
(
get_onevalue
(
cap
.
hContainer
,
(
TW_UINT32
*
)
&
actual_support
,
NULL
),
"Returned cap.hContainer invalid for QuerySupport on type 0x%x
\n
"
,
captype
);
ok
(
get_onevalue
(
cap
.
hContainer
,
(
TW_UINT32
*
)
&
actual_support
,
NULL
),
"Returned cap.hContainer invalid for QuerySupport on type 0x%x
\n
"
,
captype
);
ok
((
actual_support
&
minimum_support
)
==
minimum_support
,
ok
((
actual_support
&
minimum_support
)
==
minimum_support
,
"Error: minimum support 0x%
x for type 0x%x, got 0x%
x
\n
"
,
minimum_support
,
"Error: minimum support 0x%
lx for type 0x%x, got 0x%l
x
\n
"
,
minimum_support
,
captype
,
actual_support
);
captype
,
actual_support
);
...
@@ -474,7 +474,7 @@ static void test_physical(TW_IDENTITY *appid, TW_IDENTITY *source, TW_UINT16 cap
...
@@ -474,7 +474,7 @@ static void test_physical(TW_IDENTITY *appid, TW_IDENTITY *source, TW_UINT16 cap
{
{
get_onevalue
(
cap
.
hContainer
,
&
val
,
&
type
);
get_onevalue
(
cap
.
hContainer
,
&
val
,
&
type
);
ok
(
type
==
TWTY_FIX32
,
"GET for PHYSICALXXX is not type FIX32, is type %d
\n
"
,
type
);
ok
(
type
==
TWTY_FIX32
,
"GET for PHYSICALXXX is not type FIX32, is type %d
\n
"
,
type
);
trace
(
"GET for Physical type 0x%x returns 0x%x
\n
"
,
captype
,
val
);
trace
(
"GET for Physical type 0x%x returns 0x%
l
x
\n
"
,
captype
,
val
);
GlobalFree
(
cap
.
hContainer
);
GlobalFree
(
cap
.
hContainer
);
}
}
}
}
...
@@ -506,7 +506,7 @@ static void test_supported_sizes(TW_IDENTITY *appid, TW_IDENTITY *source, TW_INT
...
@@ -506,7 +506,7 @@ static void test_supported_sizes(TW_IDENTITY *appid, TW_IDENTITY *source, TW_INT
return
;
return
;
ok
(
get_onevalue
(
cap
.
hContainer
,
(
TW_UINT32
*
)
&
actual_support
,
NULL
),
"Returned cap.hContainer invalid for QuerySupport on ICAP_SUPPORTEDSIZES
\n
"
);
ok
(
get_onevalue
(
cap
.
hContainer
,
(
TW_UINT32
*
)
&
actual_support
,
NULL
),
"Returned cap.hContainer invalid for QuerySupport on ICAP_SUPPORTEDSIZES
\n
"
);
ok
((
actual_support
&
minimum_support
)
==
minimum_support
,
ok
((
actual_support
&
minimum_support
)
==
minimum_support
,
"Error: minimum support 0x%
x for ICAP_SUPPORTEDSIZES, got 0x%
x
\n
"
,
minimum_support
,
actual_support
);
"Error: minimum support 0x%
lx for ICAP_SUPPORTEDSIZES, got 0x%l
x
\n
"
,
minimum_support
,
actual_support
);
if
(
actual_support
&
TWQC_GETCURRENT
)
if
(
actual_support
&
TWQC_GETCURRENT
)
{
{
...
@@ -522,7 +522,7 @@ static void test_supported_sizes(TW_IDENTITY *appid, TW_IDENTITY *source, TW_INT
...
@@ -522,7 +522,7 @@ static void test_supported_sizes(TW_IDENTITY *appid, TW_IDENTITY *source, TW_INT
{
{
get_onevalue
(
cap
.
hContainer
,
&
val
,
&
type
);
get_onevalue
(
cap
.
hContainer
,
&
val
,
&
type
);
ok
(
type
==
TWTY_UINT16
,
"GETCURRENT for ICAP_SUPPORTEDSIZES is not type UINT16, is type %d
\n
"
,
type
);
ok
(
type
==
TWTY_UINT16
,
"GETCURRENT for ICAP_SUPPORTEDSIZES is not type UINT16, is type %d
\n
"
,
type
);
trace
(
"Current size is %d
\n
"
,
val
);
trace
(
"Current size is %
l
d
\n
"
,
val
);
GlobalFree
(
cap
.
hContainer
);
GlobalFree
(
cap
.
hContainer
);
orig_value
=
val
;
orig_value
=
val
;
}
}
...
@@ -542,7 +542,7 @@ static void test_supported_sizes(TW_IDENTITY *appid, TW_IDENTITY *source, TW_INT
...
@@ -542,7 +542,7 @@ static void test_supported_sizes(TW_IDENTITY *appid, TW_IDENTITY *source, TW_INT
{
{
get_onevalue
(
cap
.
hContainer
,
&
val
,
&
type
);
get_onevalue
(
cap
.
hContainer
,
&
val
,
&
type
);
ok
(
type
==
TWTY_UINT16
,
"GETDEFAULT for PHYSICALXXX is not type TWTY_UINT16, is type %d
\n
"
,
type
);
ok
(
type
==
TWTY_UINT16
,
"GETDEFAULT for PHYSICALXXX is not type TWTY_UINT16, is type %d
\n
"
,
type
);
trace
(
"Default size is %d
\n
"
,
val
);
trace
(
"Default size is %
l
d
\n
"
,
val
);
GlobalFree
(
cap
.
hContainer
);
GlobalFree
(
cap
.
hContainer
);
default_value
=
val
;
default_value
=
val
;
}
}
...
@@ -603,7 +603,7 @@ static void test_imagelayout(TW_IDENTITY *appid, TW_IDENTITY *source)
...
@@ -603,7 +603,7 @@ static void test_imagelayout(TW_IDENTITY *appid, TW_IDENTITY *source)
"Error [rc %d|cc %d] doing MSG_GET for DG_IMAGE/DAT_IMAGELAYOUT
\n
"
,
rc
,
status
.
ConditionCode
);
"Error [rc %d|cc %d] doing MSG_GET for DG_IMAGE/DAT_IMAGELAYOUT
\n
"
,
rc
,
status
.
ConditionCode
);
if
(
rc
!=
TWRC_SUCCESS
)
if
(
rc
!=
TWRC_SUCCESS
)
return
;
return
;
trace
(
"ImageLayout [Left %x.%x|Top %x.%x|Right %x.%x|Bottom %x.%x|Document %
d|Page %d|Frame %
d]
\n
"
,
trace
(
"ImageLayout [Left %x.%x|Top %x.%x|Right %x.%x|Bottom %x.%x|Document %
ld|Page %ld|Frame %l
d]
\n
"
,
layout
.
Frame
.
Left
.
Whole
,
layout
.
Frame
.
Left
.
Frac
,
layout
.
Frame
.
Left
.
Whole
,
layout
.
Frame
.
Left
.
Frac
,
layout
.
Frame
.
Top
.
Whole
,
layout
.
Frame
.
Top
.
Frac
,
layout
.
Frame
.
Top
.
Whole
,
layout
.
Frame
.
Top
.
Frac
,
layout
.
Frame
.
Right
.
Whole
,
layout
.
Frame
.
Right
.
Frac
,
layout
.
Frame
.
Right
.
Whole
,
layout
.
Frame
.
Right
.
Frac
,
...
@@ -628,7 +628,7 @@ static void test_imagelayout(TW_IDENTITY *appid, TW_IDENTITY *source)
...
@@ -628,7 +628,7 @@ static void test_imagelayout(TW_IDENTITY *appid, TW_IDENTITY *source)
"Error [rc %d|cc %d] doing MSG_GET for DG_IMAGE/DAT_IMAGELAYOUT
\n
"
,
rc
,
status
.
ConditionCode
);
"Error [rc %d|cc %d] doing MSG_GET for DG_IMAGE/DAT_IMAGELAYOUT
\n
"
,
rc
,
status
.
ConditionCode
);
if
(
rc
!=
TWRC_SUCCESS
)
if
(
rc
!=
TWRC_SUCCESS
)
return
;
return
;
trace
(
"ImageLayout after set [Left %x.%x|Top %x.%x|Right %x.%x|Bottom %x.%x|Document %
d|Page %d|Frame %
d]
\n
"
,
trace
(
"ImageLayout after set [Left %x.%x|Top %x.%x|Right %x.%x|Bottom %x.%x|Document %
ld|Page %ld|Frame %l
d]
\n
"
,
layout
.
Frame
.
Left
.
Whole
,
layout
.
Frame
.
Left
.
Frac
,
layout
.
Frame
.
Left
.
Whole
,
layout
.
Frame
.
Left
.
Frac
,
layout
.
Frame
.
Top
.
Whole
,
layout
.
Frame
.
Top
.
Frac
,
layout
.
Frame
.
Top
.
Whole
,
layout
.
Frame
.
Top
.
Frac
,
layout
.
Frame
.
Right
.
Whole
,
layout
.
Frame
.
Right
.
Frac
,
layout
.
Frame
.
Right
.
Whole
,
layout
.
Frame
.
Right
.
Frac
,
...
@@ -664,7 +664,7 @@ static void test_single_source(TW_IDENTITY *appid, TW_IDENTITY *source)
...
@@ -664,7 +664,7 @@ static void test_single_source(TW_IDENTITY *appid, TW_IDENTITY *source)
{
{
int
i
;
int
i
;
UINT16
*
u
=
(
UINT16
*
)
a
->
ItemList
;
UINT16
*
u
=
(
UINT16
*
)
a
->
ItemList
;
trace
(
"%d Capabilities:
\n
"
,
a
->
NumItems
);
trace
(
"%
l
d Capabilities:
\n
"
,
a
->
NumItems
);
for
(
i
=
0
;
i
<
a
->
NumItems
;
i
++
)
for
(
i
=
0
;
i
<
a
->
NumItems
;
i
++
)
if
(
u
[
i
]
<
ARRAY_SIZE
(
capabilities
))
if
(
u
[
i
]
<
ARRAY_SIZE
(
capabilities
))
{
{
...
@@ -776,7 +776,7 @@ static void test_sources(TW_IDENTITY *appid)
...
@@ -776,7 +776,7 @@ static void test_sources(TW_IDENTITY *appid)
while
(
rc
==
TWRC_SUCCESS
)
while
(
rc
==
TWRC_SUCCESS
)
{
{
scannercount
++
;
scannercount
++
;
trace
(
"[Scanner %d|Version %d.%d(%s)|Protocol %d.%d|SupportedGroups 0x%x|Manufacturer %s|Family %s|ProductName %s]
\n
"
,
trace
(
"[Scanner %d|Version %d.%d(%s)|Protocol %d.%d|SupportedGroups 0x%
l
x|Manufacturer %s|Family %s|ProductName %s]
\n
"
,
scannercount
,
scannercount
,
source
.
Version
.
MajorNum
,
source
.
Version
.
MinorNum
,
source
.
Version
.
Info
,
source
.
Version
.
MajorNum
,
source
.
Version
.
MinorNum
,
source
.
Version
.
Info
,
source
.
ProtocolMajor
,
source
.
ProtocolMinor
,
source
.
SupportedGroups
,
source
.
ProtocolMajor
,
source
.
ProtocolMinor
,
source
.
SupportedGroups
,
...
...
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