This commit is contained in:
parent
33f4eb92b0
commit
6bebf939af
|
@ -1158,7 +1158,7 @@ HGResult HGTwainDSImpl::ImageNativeXfer(HGUInt type, HGUInt origin, HGImage* ima
|
||||||
HGResult ret = HGBASE_ERR_FAIL;
|
HGResult ret = HGBASE_ERR_FAIL;
|
||||||
int fileSize = info.ImageWidth * info.ImageLength * info.BitsPerPixel / 8;
|
int fileSize = info.ImageWidth * info.ImageLength * info.BitsPerPixel / 8;
|
||||||
|
|
||||||
if (fileSize > 50 * 1024 * 1024)
|
if (fileSize < 50 * 1024 * 1024)
|
||||||
{
|
{
|
||||||
HANDLE hMem = NULL;
|
HANDLE hMem = NULL;
|
||||||
if (TWRC_XFERDONE != m_dsmImpl->m_pDSMProc(&m_dsmImpl->m_AppId, &m_iden, DG_IMAGE, DAT_IMAGENATIVEXFER, MSG_GET, &hMem))
|
if (TWRC_XFERDONE != m_dsmImpl->m_pDSMProc(&m_dsmImpl->m_AppId, &m_iden, DG_IMAGE, DAT_IMAGENATIVEXFER, MSG_GET, &hMem))
|
||||||
|
|
Loading…
Reference in New Issue