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