Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e3c750f3
Commit
e3c750f3
authored
Jan 18, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sane.ds: Remove unneeded casts.
parent
13a785cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
capability.c
dlls/sane.ds/capability.c
+5
-5
No files found.
dlls/sane.ds/capability.c
View file @
e3c750f3
...
...
@@ -176,14 +176,14 @@ TW_UINT16 SANE_SaneCapability (pTW_CAPABILITY pCapability, TW_UINT16 action)
static
TW_BOOL
TWAIN_OneValueSet
(
pTW_CAPABILITY
pCapability
,
TW_UINT32
value
)
{
pCapability
->
hContainer
=
(
TW_HANDLE
)
GlobalAlloc
(
0
,
sizeof
(
TW_ONEVALUE
));
pCapability
->
hContainer
=
GlobalAlloc
(
0
,
sizeof
(
TW_ONEVALUE
));
if
(
pCapability
->
hContainer
)
{
pTW_ONEVALUE
pVal
=
GlobalLock
(
(
HGLOBAL
)
pCapability
->
hContainer
);
pTW_ONEVALUE
pVal
=
GlobalLock
(
pCapability
->
hContainer
);
pVal
->
ItemType
=
TWTY_UINT32
;
pVal
->
Item
=
value
;
GlobalUnlock
(
(
HGLOBAL
)
pCapability
->
hContainer
);
GlobalUnlock
(
pCapability
->
hContainer
);
return
TRUE
;
}
else
...
...
@@ -192,12 +192,12 @@ static TW_BOOL TWAIN_OneValueSet (pTW_CAPABILITY pCapability, TW_UINT32 value)
static
TW_BOOL
TWAIN_OneValueGet
(
pTW_CAPABILITY
pCapability
,
TW_UINT32
*
pValue
)
{
pTW_ONEVALUE
pVal
=
GlobalLock
(
(
HGLOBAL
)
pCapability
->
hContainer
);
pTW_ONEVALUE
pVal
=
GlobalLock
(
pCapability
->
hContainer
);
if
(
pVal
)
{
*
pValue
=
pVal
->
Item
;
GlobalUnlock
(
(
HGLOBAL
)
pCapability
->
hContainer
);
GlobalUnlock
(
pCapability
->
hContainer
);
return
TRUE
;
}
else
...
...
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