twain_32/tests: Avoid a Dialog from a DS when the scanner is not connected.

This commit is contained in:
Detlef Riekenberg 2009-09-15 17:25:52 +02:00 committed by Alexandre Julliard
parent 86e08ea4e4
commit d13b2b658e
1 changed files with 2 additions and 1 deletions

View File

@ -787,7 +787,8 @@ static void test_sources(TW_IDENTITY *appid)
(rc == TWRC_FAILURE && status.ConditionCode == TWCC_NODS),
"Get default invalid condition code, rc %d, cc %d\n", rc, status.ConditionCode);
if (rc == TWRC_SUCCESS && status.ConditionCode == TWCC_SUCCESS)
/* A DS might display a Popup during MSG_OPENDS, when the scanner is not connected */
if (rc == TWRC_SUCCESS && status.ConditionCode == TWCC_SUCCESS && winetest_interactive)
{
rc = pDSM_Entry(appid, NULL, DG_CONTROL, DAT_IDENTITY, MSG_OPENDS, &source);
get_condition_code(appid, NULL, &status);