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
c4703a4a
Commit
c4703a4a
authored
Jun 16, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sane.ds: Removed 3 array != NULL checks (Coverity).
parent
520f07a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sane_main.c
dlls/sane.ds/sane_main.c
+3
-3
No files found.
dlls/sane.ds/sane_main.c
View file @
c4703a4a
...
...
@@ -473,13 +473,13 @@ 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
(
self
->
Manufacturer
&&
*
self
->
Manufacturer
&&
strcmp
(
name
,
self
->
Manufacturer
))
if
(
*
self
->
Manufacturer
&&
strcmp
(
name
,
self
->
Manufacturer
))
continue
;
lstrcpynA
(
name
,
sane_devlist
[
i
]
->
model
,
sizeof
(
name
)
-
1
);
if
(
self
->
ProductFamily
&&
*
self
->
ProductFamily
&&
strcmp
(
name
,
self
->
ProductFamily
))
if
(
*
self
->
ProductFamily
&&
strcmp
(
name
,
self
->
ProductFamily
))
continue
;
copy_sane_short_name
(
sane_devlist
[
i
]
->
name
,
name
,
sizeof
(
name
)
-
1
);
if
(
self
->
ProductName
&&
*
self
->
ProductName
&&
strcmp
(
name
,
self
->
ProductName
))
if
(
*
self
->
ProductName
&&
strcmp
(
name
,
self
->
ProductName
))
continue
;
break
;
}
...
...
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