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
3d0d1250
Commit
3d0d1250
authored
Feb 25, 2009
by
Jeremy White
Committed by
Alexandre Julliard
Feb 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sane.ds: Revise to match identity structures with partial information.
parent
00f9ef0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sane_main.c
dlls/sane.ds/sane_main.c
+5
-5
No files found.
dlls/sane.ds/sane_main.c
View file @
3d0d1250
...
...
@@ -645,19 +645,19 @@ static TW_UINT16 SANE_OpenDS( pTW_IDENTITY pOrigin, pTW_IDENTITY self) {
/* To make string as short as above */
lstrcpynA
(
name
,
sane_devlist
[
i
]
->
vendor
,
sizeof
(
name
)
-
1
);
if
(
strcmp
(
name
,
self
->
Manufacturer
))
if
(
s
elf
->
Manufacturer
&&
*
self
->
Manufacturer
&&
s
trcmp
(
name
,
self
->
Manufacturer
))
continue
;
lstrcpynA
(
name
,
sane_devlist
[
i
]
->
model
,
sizeof
(
name
)
-
1
);
if
(
strcmp
(
name
,
self
->
ProductFamily
))
if
(
s
elf
->
ProductFamily
&&
*
self
->
ProductFamily
&&
s
trcmp
(
name
,
self
->
ProductFamily
))
continue
;
copy_sane_short_name
(
sane_devlist
[
i
]
->
name
,
name
,
sizeof
(
name
)
-
1
);
if
(
strcmp
(
name
,
self
->
ProductName
))
if
(
s
elf
->
ProductName
&&
*
self
->
ProductName
&&
s
trcmp
(
name
,
self
->
ProductName
))
continue
;
break
;
}
if
(
!
sane_devlist
[
i
])
{
FIXME
(
"Scanner not found
? Using first one!
\n
"
);
i
=
0
;
FIXME
(
"Scanner not found
.
\n
"
);
return
TWRC_FAILURE
;
}
status
=
psane_open
(
sane_devlist
[
i
]
->
name
,
&
activeDS
.
deviceHandle
);
if
(
status
==
SANE_STATUS_GOOD
)
{
...
...
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