mirror of
https://github.com/soukoku/ntwain.git
synced 2025-11-24 16:53:24 +08:00
Fix wrong cap call for Get.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<!--change these in each release-->
|
||||
<VersionPrefix>4.0.0.0</VersionPrefix>
|
||||
<VersionSuffix>alpha.17</VersionSuffix>
|
||||
<VersionSuffix>alpha.18</VersionSuffix>
|
||||
|
||||
<!--keep it the same until major # changes-->
|
||||
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||||
|
||||
@@ -180,7 +180,7 @@ namespace NTwain
|
||||
public STS GetCapValues<TValue>(CAP cap, out ValueContainer<TValue> value) where TValue : struct
|
||||
{
|
||||
value = new ValueContainer<TValue> { ContainerType = TWON.DONTCARE };
|
||||
var sts = GetCapCurrent(cap, out TW_CAPABILITY twcap);
|
||||
var sts = GetCapValues(cap, out TW_CAPABILITY twcap);
|
||||
if (sts.RC == TWRC.SUCCESS)
|
||||
{
|
||||
value.ContainerType = twcap.ConType;
|
||||
|
||||
Reference in New Issue
Block a user