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
620e81a9
Commit
620e81a9
authored
Jan 28, 2009
by
Jeremy White
Committed by
Alexandre Julliard
Jan 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
twain_32: Return TWRC_FAILURE/TWCC_NODS when we have no sources.
parent
768c06d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
dsm_ctrl.c
dlls/twain_32/dsm_ctrl.c
+2
-2
dsm.c
dlls/twain_32/tests/dsm.c
+3
-6
No files found.
dlls/twain_32/dsm_ctrl.c
View file @
620e81a9
...
...
@@ -169,8 +169,8 @@ TW_UINT16 TWAIN_IdentityGetFirst (pTW_IDENTITY pOrigin, TW_MEMREF pData)
twain_autodetect
();
if
(
!
nrdevices
)
{
TRACE
(
"no entries found.
\n
"
);
DSM_twCC
=
TWCC_
SUCCES
S
;
return
TWRC_
ENDOFLIST
;
DSM_twCC
=
TWCC_
NOD
S
;
return
TWRC_
FAILURE
;
}
DSM_currentDevice
=
0
;
*
pSourceIdentity
=
devices
[
DSM_currentDevice
++
].
identity
;
...
...
dlls/twain_32/tests/dsm.c
View file @
620e81a9
...
...
@@ -150,12 +150,9 @@ static void test_sources(TW_IDENTITY *appid)
memset
(
&
source
,
0
,
sizeof
(
source
));
rc
=
pDSM_Entry
(
appid
,
NULL
,
DG_CONTROL
,
DAT_IDENTITY
,
MSG_GETFIRST
,
&
source
);
get_condition_code
(
appid
,
NULL
,
&
status
);
todo_wine
ok
(
rc
==
TWRC_SUCCESS
||
rc
==
TWRC_FAILURE
,
"Get first error code, rc %d, cc %d
\n
"
,
rc
,
status
.
ConditionCode
);
if
(
rc
==
TWRC_SUCCESS
)
ok
(
status
.
ConditionCode
==
TWCC_SUCCESS
,
"Get first invalid condition code, rc %d, cc %d
\n
"
,
rc
,
status
.
ConditionCode
);
if
(
rc
==
TWRC_FAILURE
)
ok
(
status
.
ConditionCode
==
TWCC_NODS
,
"Get first invalid condition code, rc %d, cc %d
\n
"
,
rc
,
status
.
ConditionCode
);
ok
(
(
rc
==
TWRC_SUCCESS
&&
status
.
ConditionCode
==
TWCC_SUCCESS
)
||
(
rc
==
TWRC_FAILURE
&&
status
.
ConditionCode
==
TWCC_NODS
),
"Get first invalid condition code, rc %d, cc %d
\n
"
,
rc
,
status
.
ConditionCode
);
while
(
rc
==
TWRC_SUCCESS
)
{
...
...
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