解决单张扫描失败,配置不能重置的问题

This commit is contained in:
luoliangyi 2023-12-09 16:11:28 +08:00
parent 7ddb5b1a11
commit c553dbbbec
1 changed files with 2 additions and 0 deletions

View File

@ -688,6 +688,8 @@ HGResult HGTwainDSImpl::EnableWithSingleScan(HWND parent, HGDSEventFunc eventFun
twUI.hParent = (TW_HANDLE)parent;
if (TWRC_SUCCESS != m_dsmImpl->m_pDSMProc(&m_dsmImpl->m_AppId, &m_iden, DG_CONTROL, DAT_USERINTERFACE, MSG_ENABLEDS, (TW_MEMREF)&twUI))
{
SetCapInt(CAP_XFERCOUNT, TWTY_INT16, oldXferCount);
TW_STATUS status;
m_dsmImpl->m_pDSMProc(&m_dsmImpl->m_AppId, &m_iden, DG_CONTROL, DAT_STATUS, MSG_GET, (TW_MEMREF)&status);
if (status.ConditionCode == TWCC_CHECKDEVICEONLINE)