parent
0c04331f97
commit
e99c4b816a
@ -156,8 +156,10 @@ static uint64
|
|||||||
_tiffSizeProc(thandle_t fd)
|
_tiffSizeProc(thandle_t fd)
|
||||||
{
|
{
|
||||||
ULARGE_INTEGER m;
|
ULARGE_INTEGER m;
|
||||||
m.LowPart=GetFileSize(fd,&m.HighPart);
|
if (GetFileSizeEx(fd,&m))
|
||||||
return(m.QuadPart);
|
return(m.QuadPart);
|
||||||
|
else
|
||||||
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -189,7 +191,7 @@ _tiffMapProc(thandle_t fd, void** pbase, toff_t* psize)
|
|||||||
|
|
||||||
size = _tiffSizeProc(fd);
|
size = _tiffSizeProc(fd);
|
||||||
sizem = (tmsize_t)size;
|
sizem = (tmsize_t)size;
|
||||||
if ((uint64)sizem!=size)
|
if (!size || (uint64)sizem!=size)
|
||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
/* By passing in 0 for the maximum file size, it specifies that we
|
/* By passing in 0 for the maximum file size, it specifies that we
|
||||||
|
Loading…
Reference in New Issue
Block a user