This commit is contained in:
Elena.Subbotina
2022-10-27 17:47:25 +03:00
parent 0f9730814b
commit 33890472f3
2 changed files with 2 additions and 1 deletions

View File

@ -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)
{

View File

@ -35,6 +35,7 @@
#include <fstream>
#include <memory>
#include <algorithm>
#include <iosfwd>
#include "../../DesktopEditor/common/Types.h"