mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
.
This commit is contained in:
@ -1496,7 +1496,7 @@ void CompoundFile_impl::SetStreamLength(std::shared_ptr<CFItem> cfItem, std::str
|
||||
|
||||
std::array<char, 256> buf;
|
||||
buf.fill(0);
|
||||
ULONG64 toRead = (ULONG64)(std::min)((ULONG64)length, cfItem->size());
|
||||
std::streamsize toRead = (std::min)(length, cfItem->size());
|
||||
|
||||
while (toRead > count)
|
||||
{
|
||||
|
||||
@ -35,6 +35,7 @@
|
||||
#include <fstream>
|
||||
#include <memory>
|
||||
#include <algorithm>
|
||||
#include <iosfwd>
|
||||
|
||||
#include "../../DesktopEditor/common/Types.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user