This commit is contained in:
yangjiaxuan 2024-06-24 10:30:38 +08:00
parent 33f4eb92b0
commit 6bebf939af
1 changed files with 1 additions and 1 deletions

View File

@ -1158,7 +1158,7 @@ HGResult HGTwainDSImpl::ImageNativeXfer(HGUInt type, HGUInt origin, HGImage* ima
HGResult ret = HGBASE_ERR_FAIL;
int fileSize = info.ImageWidth * info.ImageLength * info.BitsPerPixel / 8;
if (fileSize > 50 * 1024 * 1024)
if (fileSize < 50 * 1024 * 1024)
{
HANDLE hMem = NULL;
if (TWRC_XFERDONE != m_dsmImpl->m_pDSMProc(&m_dsmImpl->m_AppId, &m_iden, DG_IMAGE, DAT_IMAGENATIVEXFER, MSG_GET, &hMem))