Xfer default change.

This commit is contained in:
soukoku 2015-01-05 21:39:20 -05:00
parent afa7a1b3d2
commit 1ae051e933

View File

@ -32,7 +32,7 @@ namespace NTwain.Internals
if (session.DGControl.XferGroup.Get(ref xferGroup) == ReturnCode.Success)
{
xferAudio = (xferGroup & DataGroups.Audio) == DataGroups.Audio;
xferImage = xferGroup == DataGroups.None || (xferGroup & DataGroups.Audio) == DataGroups.Audio;
xferImage = xferGroup == DataGroups.None || (xferGroup & DataGroups.Image) == DataGroups.Image;
}
@ -68,8 +68,8 @@ namespace NTwain.Internals
// some DS end up getting none but we will assume it's image
if (xferImage)
{
// default to memory
var mech = XferMech.Memory;
// default to native
var mech = XferMech.Native;
object mechRaw = session.CurrentSource.CapGetCurrent(CapabilityId.ICapXferMech);
if (mechRaw != null)