[twain 05/14] Return a 0 for MSG_QUERYSUPPORT even for capabilities we don't support.
Jeremy White
jwhite at winehq.org
Mon Feb 9 13:01:09 CST 2009
---
dlls/sane.ds/capability.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/sane.ds/capability.c b/dlls/sane.ds/capability.c
index 1755b6c..e68bc80 100644
--- a/dlls/sane.ds/capability.c
+++ b/dlls/sane.ds/capability.c
@@ -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;
}
--
1.5.6.3
More information about the wine-patches
mailing list