Commit 22bab0aa authored by Jeremy White's avatar Jeremy White Committed by Alexandre Julliard

sane.ds: Return a 0 for MSG_QUERYSUPPORT even for capabilities we don't support.

parent 8dee7519
......@@ -259,5 +259,10 @@ TW_UINT16 SANE_SaneCapability (pTW_CAPABILITY pCapability, TW_UINT16 action)
break;
}
/* Twain specifies that you should return a 0 in response to QUERYSUPPORT,
* even if you don't formally support the capability */
if (twCC == TWCC_CAPUNSUPPORTED && action == MSG_QUERYSUPPORT)
twCC = set_onevalue(pCapability, 0, TWTY_INT32);
return twCC;
}
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