This commit is contained in:
parent
9eeab118a6
commit
495b6c9819
|
@ -488,7 +488,7 @@ HGResult HGTwainDSImpl::Logout()
|
|||
pVal->ItemType = TWTY_STR32;
|
||||
pVal->NumItems = 2;
|
||||
memset(pVal->Value[0], 0, sizeof(pVal->Value[0]));
|
||||
memset(pVal->Value[0], 0, sizeof(pVal->Value[1]));
|
||||
memset(pVal->Value[1], 0, sizeof(pVal->Value[1]));
|
||||
GlobalUnlock(twCap.hContainer);
|
||||
|
||||
USHORT ret = m_dsmImpl->m_pDSMProc(&m_dsmImpl->m_AppId, &m_iden, DG_CONTROL, DAT_CAPABILITY, MSG_SET, &twCap);
|
||||
|
@ -708,7 +708,7 @@ struct CapStr255Type
|
|||
|
||||
HGResult HGTwainDSImpl::SetCapStr255(HGUInt cap, const HGChar *value)
|
||||
{
|
||||
if (NULL == value || strlen(value) >= sizeof(TWTY_STR255))
|
||||
if (NULL == value || strlen(value) >= sizeof(TW_STR255))
|
||||
{
|
||||
return HGBASE_ERR_INVALIDARG;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue