Commit d13b2b65 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

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

parent 86e08ea4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment