mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Merge pull request 'Fix bug 74748' (#536) from fix/bug-74748 into release/v9.2.0
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/536
This commit is contained in:
@ -16,7 +16,15 @@
|
||||
static tsize_t
|
||||
_tiffReadProcEx(thandle_t fd, tdata_t buf, tsize_t size)
|
||||
{
|
||||
return (tsize_t)((CxFile*)fd)->Read(buf, 1, size);
|
||||
tsize_t nReadCount = (tsize_t)((CxFile*)fd)->Read(buf, 1, size);
|
||||
|
||||
if (nReadCount < size)
|
||||
{
|
||||
memset(static_cast<char*>(buf) + nReadCount, 0, size - nReadCount);
|
||||
return size;
|
||||
}
|
||||
|
||||
return nReadCount;
|
||||
}
|
||||
|
||||
static tsize_t
|
||||
|
||||
Reference in New Issue
Block a user