mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Added close source to StepDown().
This commit is contained in:
@@ -54,6 +54,10 @@ namespace NTwain
|
|||||||
rc = DGControl.Parent.CloseDSM(ref _hWnd);
|
rc = DGControl.Parent.CloseDSM(ref _hWnd);
|
||||||
if (rc != ReturnCode.Success) return rc;
|
if (rc != ReturnCode.Success) return rc;
|
||||||
break;
|
break;
|
||||||
|
case TwainState.SourceOpened:
|
||||||
|
rc = DGControl.Identity.CloseDS(CurrentSource.Identity);
|
||||||
|
if (rc != ReturnCode.Success) return rc;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return rc;
|
return rc;
|
||||||
|
|||||||
Reference in New Issue
Block a user