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
d389f471
Commit
d389f471
authored
Nov 18, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If SANE returns empty device list treat it as an error.
parent
e1b644b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
dsm_ctrl.c
dlls/twain/dsm_ctrl.c
+11
-3
No files found.
dlls/twain/dsm_ctrl.c
View file @
d389f471
...
...
@@ -146,16 +146,24 @@ TW_UINT16 TWAIN_IdentityGetFirst (pTW_IDENTITY pOrigin, TW_MEMREF pData)
{
if
(
device_list
[
0
])
{
TRACE
(
"got: %s, %s, %s
\n
"
,
device_list
[
0
]
->
name
,
device_list
[
0
]
->
vendor
,
device_list
[
0
]
->
model
);
pSourceIdentity
->
Id
=
DSM_sourceId
++
;
strcpy
(
pSourceIdentity
->
ProductName
,
device_list
[
0
]
->
name
);
strcpy
(
pSourceIdentity
->
Manufacturer
,
device_list
[
0
]
->
vendor
);
strcpy
(
pSourceIdentity
->
ProductFamily
,
device_list
[
0
]
->
model
);
pSourceIdentity
->
ProtocolMajor
=
TWON_PROTOCOLMAJOR
;
pSourceIdentity
->
ProtocolMinor
=
TWON_PROTOCOLMINOR
;
DSM_currentDevice
=
1
;
twRC
=
TWRC_SUCCESS
;
DSM_twCC
=
TWCC_SUCCESS
;
}
else
{
TRACE
(
"got empty device list
\n
"
);
twRC
=
TWRC_FAILURE
;
DSM_twCC
=
TWCC_NODS
;
}
DSM_currentDevice
=
1
;
twRC
=
TWRC_SUCCESS
;
DSM_twCC
=
TWCC_SUCCESS
;
}
else
if
(
status
==
SANE_STATUS_NO_MEM
)
{
...
...
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