This commit is contained in:
luoliangyi 2023-05-12 15:23:08 +08:00
parent 9eeab118a6
commit 495b6c9819
1 changed files with 2 additions and 2 deletions

View File

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