Added close source to StepDown().

This commit is contained in:
Eugene Wang
2018-11-13 21:25:57 -05:00
parent ebc2f49d92
commit c72f145703

View File

@@ -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;